pub trait Outbox: Send + Sync {
// Required methods
fn send(
&self,
op: ClientOp,
) -> Pin<Box<dyn Future<Output = Result<(), NetError>> + Send + '_>>;
fn request(
&self,
op: ClientOp,
) -> Pin<Box<dyn Future<Output = Result<ResBody, NetError>> + Send + '_>>;
}Expand description
Where lifecycle frames leave the dispatcher.
send completes once the frame is on the wire. The ready report awaits this
before the payload reaches the agent, which is the causal order §6 fixes.
Required Methods§
fn send( &self, op: ClientOp, ) -> Pin<Box<dyn Future<Output = Result<(), NetError>> + Send + '_>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".