pub struct ServerEnd<T: ProtocolMarker> { /* private fields */ }
Expand description
The Server
end of a FIDL connection.
Implementations§
Source§impl<T: ProtocolMarker> ServerEnd<T>
impl<T: ProtocolMarker> ServerEnd<T>
Sourcepub fn into_channel(self) -> Channel
pub fn into_channel(self) -> Channel
Extract the inner channel.
Sourcepub fn into_stream(self) -> T::RequestStreamwhere
T: ProtocolMarker,
pub fn into_stream(self) -> T::RequestStreamwhere
T: ProtocolMarker,
Create a stream of requests off of the channel.
Sourcepub fn into_stream_and_control_handle(
self,
) -> (T::RequestStream, <T::RequestStream as RequestStream>::ControlHandle)where
T: ProtocolMarker,
pub fn into_stream_and_control_handle(
self,
) -> (T::RequestStream, <T::RequestStream as RequestStream>::ControlHandle)where
T: ProtocolMarker,
Create a stream of requests and an event-sending handle from the channel.
Trait Implementations§
Source§impl<T: ProtocolMarker> AsHandleRef for ServerEnd<T>
impl<T: ProtocolMarker> AsHandleRef for ServerEnd<T>
Source§impl<T: ProtocolMarker> EncodableAsHandle for ServerEnd<T>
impl<T: ProtocolMarker> EncodableAsHandle for ServerEnd<T>
Source§type Dialect = FDomainResourceDialect
type Dialect = FDomainResourceDialect
What resource dialect can encode this object as a handle.
Source§impl<T: ProtocolMarker> HandleBased for ServerEnd<T>
impl<T: ProtocolMarker> HandleBased for ServerEnd<T>
Source§fn close(self) -> impl Future<Output = Result<(), Error>>
fn close(self) -> impl Future<Output = Result<(), Error>>
Closes this handle. Surfaces errors that dropping the handle will not.
Source§fn duplicate_handle(
&self,
rights: Rights,
) -> impl Future<Output = Result<Self, Error>>
fn duplicate_handle( &self, rights: Rights, ) -> impl Future<Output = Result<Self, Error>>
Duplicate this handle.
Source§fn replace_handle(
self,
rights: Rights,
) -> impl Future<Output = Result<Self, Error>>
fn replace_handle( self, rights: Rights, ) -> impl Future<Output = Result<Self, Error>>
Replace this handle with an equivalent one with different rights.
Source§fn into_handle(self) -> Handle
fn into_handle(self) -> Handle
Convert this handle-based value into a pure
Handle
.Source§fn from_handle(handle: Handle) -> Self
fn from_handle(handle: Handle) -> Self
Construct a new handle-based value from a
Handle
.Source§fn into_handle_based<H: HandleBased>(self) -> H
fn into_handle_based<H: HandleBased>(self) -> H
Turn this handle-based value into one of a different type.
Source§fn from_handle_based<H: HandleBased>(h: H) -> Self
fn from_handle_based<H: HandleBased>(h: H) -> Self
Turn another handle-based type into this one.
Source§impl<T: Ord + ProtocolMarker> Ord for ServerEnd<T>
impl<T: Ord + ProtocolMarker> Ord for ServerEnd<T>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: PartialOrd + ProtocolMarker> PartialOrd for ServerEnd<T>
impl<T: PartialOrd + ProtocolMarker> PartialOrd for ServerEnd<T>
impl<T: Eq + ProtocolMarker> Eq for ServerEnd<T>
impl<T: ProtocolMarker> StructuralPartialEq for ServerEnd<T>
Auto Trait Implementations§
impl<T> Freeze for ServerEnd<T>
impl<T> RefUnwindSafe for ServerEnd<T>where
T: RefUnwindSafe,
impl<T> Send for ServerEnd<T>
impl<T> Sync for ServerEnd<T>
impl<T> Unpin for ServerEnd<T>where
T: Unpin,
impl<T> UnwindSafe for ServerEnd<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T
to [Self
]