Skip to main content

ReadyEqExt

Trait ReadyEqExt 

Source
pub trait ReadyEqExt<T>
where Self: Future<Output = T> + Send + Sized, T: PartialEq + Send + Sync,
{ // Required methods fn eq(self, t: &T) -> impl Future<Output = bool> + Send; fn ne(self, t: &T) -> impl Future<Output = bool> + Send; }

Required Methods§

Source

fn eq(self, t: &T) -> impl Future<Output = bool> + Send

Source

fn ne(self, t: &T) -> impl Future<Output = bool> + Send

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§

Source§

impl<Fut, T> ReadyEqExt<T> for Fut
where Fut: Future<Output = T> + Send + Sized, T: PartialEq + Send + Sync,