Skip to main content

BoundedPooled

Trait BoundedPooled 

Source
pub trait BoundedPooled<C: ChannelFactory, const N: usize>:
    Send
    + Sized
    + 'static {
    // Required method
    fn bounded_pair(    ) -> (C::BoundedSender<Self, N>, C::BoundedReceiver<Self, N>);
}
Expand description

Per-(T, N) opt-in for ChannelFactory::bounded. See OneshotPooled for the design rationale; this is the bounded peer with capacity baked into the type.

Required Methods§

Source

fn bounded_pair() -> (C::BoundedSender<Self, N>, C::BoundedReceiver<Self, N>)

Build a (sender, receiver) pair through C’s bounded family with capacity N.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§