pub trait RuntimeChannel: Runtime {
type Receiver<T: Debug + Send>: Stream<Item = T> + Send;
type Sender<T: Debug + Send>: TrySend<Message = T> + Debug;
// Required method
fn batch_message_channel<T: Debug + Send>(
&self,
capacity: usize,
) -> (Self::Sender<T>, Self::Receiver<T>);
}
Expand description
Required Associated Types§
Required 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.