pub trait CotReceiver: Connected + Send {
type Error;
// Required method
fn correlated_receive_into<B>(
&mut self,
ots: &mut B,
choices: &[Choice],
) -> impl Future<Output = Result<(), Self::Error>> + Send
where B: Buf<Block>;
// Provided method
fn correlated_receive(
&mut self,
choices: &[Choice],
) -> impl Future<Output = Result<Vec<Block>, Self::Error>> + Send { ... }
}
Required Associated Types§
Required Methods§
Provided Methods§
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.