WatchReceiverExt

Trait WatchReceiverExt 

Source
pub trait WatchReceiverExt<T: Send + Sync> {
    // Required method
    fn wait_for_then<R: Send + Sync>(
        &mut self,
        _: impl FnMut(&T) -> Option<R> + Send + Sync,
    ) -> impl Future<Output = Result<R, RecvError>> + Send + Sync;
}

Required Methods§

Source

fn wait_for_then<R: Send + Sync>( &mut self, _: impl FnMut(&T) -> Option<R> + Send + Sync, ) -> impl Future<Output = Result<R, RecvError>> + Send + Sync

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§