pub struct AsyncNot<Inner> { /* private fields */ }Expand description
An asynchronous specification that negates another specification.
Trait Implementations§
Source§impl<T: ?Sized + Sync, Inner> AsyncSpecification<T> for AsyncNot<Inner>where
Inner: AsyncSpecification<T>,
impl<T: ?Sized + Sync, Inner> AsyncSpecification<T> for AsyncNot<Inner>where
Inner: AsyncSpecification<T>,
Source§type Error = <Inner as AsyncSpecification<T>>::Error
type Error = <Inner as AsyncSpecification<T>>::Error
The typed error produced by asynchronous evaluation.
Source§fn is_satisfied_by<'candidate>(
&'candidate self,
candidate: &'candidate T,
) -> impl Future<Output = Result<bool, Self::Error>> + Send + 'candidate
fn is_satisfied_by<'candidate>( &'candidate self, candidate: &'candidate T, ) -> impl Future<Output = Result<bool, Self::Error>> + Send + 'candidate
Evaluates the rule and returns a
Send future with a typed result.Source§fn and<Other>(self, other: Other) -> AsyncAnd<Self, Other>
fn and<Other>(self, other: Other) -> AsyncAnd<Self, Other>
Combines this rule with
other using asynchronous short-circuiting AND.Auto Trait Implementations§
impl<Inner> Freeze for AsyncNot<Inner>where
Inner: Freeze,
impl<Inner> RefUnwindSafe for AsyncNot<Inner>where
Inner: RefUnwindSafe,
impl<Inner> Send for AsyncNot<Inner>where
Inner: Send,
impl<Inner> Sync for AsyncNot<Inner>where
Inner: Sync,
impl<Inner> Unpin for AsyncNot<Inner>where
Inner: Unpin,
impl<Inner> UnsafeUnpin for AsyncNot<Inner>where
Inner: UnsafeUnpin,
impl<Inner> UnwindSafe for AsyncNot<Inner>where
Inner: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more