stratus::ext

Trait WatchReceiverExt

Source
pub trait WatchReceiverExt<T> {
    // Required method
    async fn wait_for_change(
        &mut self,
        f: impl Fn(&T) -> bool,
    ) -> Result<(), RecvError>;
}

Required Methods§

Source

async fn wait_for_change( &mut self, f: impl Fn(&T) -> bool, ) -> Result<(), RecvError>

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> WatchReceiverExt<T> for Receiver<T>

Source§

async fn wait_for_change( &mut self, f: impl Fn(&T) -> bool, ) -> Result<(), RecvError>

Implementors§