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.
Sourcepub fn close_with_epitaph(self, status: Status) -> Result<(), Error>
pub fn close_with_epitaph(self, status: Status) -> Result<(), Error>
Writes an epitaph into the underlying channel before closing it.
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: 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