pub trait RequestStream:
Sized
+ Send
+ Stream
+ TryStream<Error = Error>
+ Unpin {
type Protocol: ProtocolMarker<RequestStream = Self>;
type ControlHandle: ControlHandle;
// Required methods
fn control_handle(&self) -> Self::ControlHandle;
fn from_channel(inner: Channel) -> Self;
fn into_inner(self) -> (Arc<ServeInner<FDomainResourceDialect>>, bool);
fn from_inner(
inner: Arc<ServeInner<FDomainResourceDialect>>,
is_terminated: bool,
) -> Self;
}
Expand description
A stream of requests coming into a FIDL server over a channel.
Required Associated Types§
Sourcetype Protocol: ProtocolMarker<RequestStream = Self>
type Protocol: ProtocolMarker<RequestStream = Self>
The protocol which this RequestStream
serves.
Sourcetype ControlHandle: ControlHandle
type ControlHandle: ControlHandle
The control handle for this RequestStream
.
Required Methods§
Sourcefn control_handle(&self) -> Self::ControlHandle
fn control_handle(&self) -> Self::ControlHandle
Returns a copy of the ControlHandle
for the given stream.
This handle can be used to send events or shut down the request stream.
Sourcefn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a request stream from the given channel.
Sourcefn into_inner(self) -> (Arc<ServeInner<FDomainResourceDialect>>, bool)
fn into_inner(self) -> (Arc<ServeInner<FDomainResourceDialect>>, bool)
Convert to a ServeInner
Sourcefn from_inner(
inner: Arc<ServeInner<FDomainResourceDialect>>,
is_terminated: bool,
) -> Self
fn from_inner( inner: Arc<ServeInner<FDomainResourceDialect>>, is_terminated: bool, ) -> Self
Convert from a ServeInner
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.