CanCreateChannelsOnce

Trait CanCreateChannelsOnce 

Source
pub trait CanCreateChannelsOnce: HasChannelOnceTypes {
    // Required method
    fn new_channel_once<T>() -> (Self::SenderOnce<T>, Self::ReceiverOnce<T>)
       where T: Async;
}

Required Methods§

Source

fn new_channel_once<T>() -> (Self::SenderOnce<T>, Self::ReceiverOnce<T>)
where T: Async,

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.

Implementors§

Source§

impl<Runtime> CanCreateChannelsOnce for Runtime
where Runtime: HasChannelOnceTypes + HasComponents, Runtime::Components: ChannelOnceCreator<Runtime>,