Skip to main content

UnboundedPooled

Trait UnboundedPooled 

Source
pub trait UnboundedPooled<C: ChannelFactory>:
    Send
    + Sized
    + 'static {
    // Required method
    fn unbounded_pair(    ) -> (C::UnboundedSender<Self>, C::UnboundedReceiver<Self>);
}
Expand description

Per-T opt-in for ChannelFactory::unbounded. See OneshotPooled for the design rationale.

Required Methods§

Source

fn unbounded_pair() -> (C::UnboundedSender<Self>, C::UnboundedReceiver<Self>)

Build a (sender, receiver) pair through C’s unbounded family.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§