Skip to main content

AsyncNot

Struct AsyncNot 

Source
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>,

Source§

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

Evaluates the rule and returns a Send future with a typed result.
Source§

fn and<Other>(self, other: Other) -> AsyncAnd<Self, Other>
where Self: Sized, Other: AsyncSpecification<T, Error = Self::Error>,

Combines this rule with other using asynchronous short-circuiting AND.
Source§

fn or<Other>(self, other: Other) -> AsyncOr<Self, Other>
where Self: Sized, Other: AsyncSpecification<T, Error = Self::Error>,

Combines this rule with other using asynchronous short-circuiting OR.
Source§

fn not(self) -> AsyncNot<Self>
where Self: Sized,

Creates an asynchronous rule that negates this rule’s result.

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.