cushy::reactive::channel::builder

Trait ChannelMode

Source
pub trait ChannelMode<T>: Into<Broadcast<T>> {
    type Next;
    type Channel;

    // Required method
    fn finish(self, limit: Option<usize>) -> Self::Channel;
}
Expand description

A channel configuration.

Required Associated Types§

Source

type Next

The next configuration when a new callback is associated with this builder.

Source

type Channel

The resulting channel type created from this configuration.

Required Methods§

Source

fn finish(self, limit: Option<usize>) -> Self::Channel

Returns the built channel.

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<T> ChannelMode<T> for Broadcast<T>
where T: Unpin + Clone + Send + 'static,

Source§

impl<T> ChannelMode<T> for SingleCallback<T>
where T: Send + 'static,

Source§

impl<T> ChannelMode<T> for SingleConsumer
where T: Send + 'static,