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§
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.