pub trait Delivery<M> {
type Send: Sink<Outgoing<M>, Error = Self::SendError> + Unpin;
type Receive: Stream<Item = Result<Incoming<M>, Self::ReceiveError>> + Unpin;
type SendError: Error + Send + Sync + 'static;
type ReceiveError: Error + Send + Sync + 'static;
// Required method
fn split(self) -> (Self::Receive, Self::Send);
}
Expand description
Required Associated Types§
Sourcetype Receive: Stream<Item = Result<Incoming<M>, Self::ReceiveError>> + Unpin
type Receive: Stream<Item = Result<Incoming<M>, Self::ReceiveError>> + Unpin
Incoming delivery channel
Sourcetype ReceiveError: Error + Send + Sync + 'static
type ReceiveError: Error + Send + Sync + 'static
Error of incoming delivery channel
Required Methods§
Implementations on Foreign Types§
Implementors§
Source§impl<M> Delivery<M> for MockedDelivery<M>
Available on crate features sim-async
and sim
only.
impl<M> Delivery<M> for MockedDelivery<M>
Available on crate features
sim-async
and sim
only.