WatchExt

Trait WatchExt 

Source
pub trait WatchExt<T, Codec, const MAX_ITEM_SIZE: usize> {
    // Required method
    fn with_max_item_size<const NEW_MAX_ITEM_SIZE: usize>(
        self,
    ) -> (Sender<T, Codec>, Receiver<T, Codec, NEW_MAX_ITEM_SIZE>);
}
Expand description

Extensions for watch channels.

Required Methods§

Source

fn with_max_item_size<const NEW_MAX_ITEM_SIZE: usize>( self, ) -> (Sender<T, Codec>, Receiver<T, Codec, NEW_MAX_ITEM_SIZE>)

Sets the maximum item size for the 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.

Implementations on Foreign Types§

Source§

impl<T, Codec, const MAX_ITEM_SIZE: usize> WatchExt<T, Codec, MAX_ITEM_SIZE> for (Sender<T, Codec>, Receiver<T, Codec, MAX_ITEM_SIZE>)
where T: Send + 'static,

Source§

fn with_max_item_size<const NEW_MAX_ITEM_SIZE: usize>( self, ) -> (Sender<T, Codec>, Receiver<T, Codec, NEW_MAX_ITEM_SIZE>)

Implementors§