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§
Sourcefn with_max_item_size<const NEW_MAX_ITEM_SIZE: usize>(
self,
) -> (Sender<T, Codec>, Receiver<T, Codec, NEW_MAX_ITEM_SIZE>)
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.