Skip to main content

AsyncAnd

Struct AsyncAnd 

Source
pub struct AsyncAnd<Left, Right> { /* private fields */ }
Expand description

An asynchronous specification that requires both operands to succeed.

Trait Implementations§

Source§

impl<T: ?Sized + Sync, Left, Right> AsyncSpecification<T> for AsyncAnd<Left, Right>
where Left: AsyncSpecification<T>, Right: AsyncSpecification<T, Error = Left::Error>,

Source§

type Error = <Left 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<Left, Right> Freeze for AsyncAnd<Left, Right>
where Left: Freeze, Right: Freeze,

§

impl<Left, Right> RefUnwindSafe for AsyncAnd<Left, Right>
where Left: RefUnwindSafe, Right: RefUnwindSafe,

§

impl<Left, Right> Send for AsyncAnd<Left, Right>
where Left: Send, Right: Send,

§

impl<Left, Right> Sync for AsyncAnd<Left, Right>
where Left: Sync, Right: Sync,

§

impl<Left, Right> Unpin for AsyncAnd<Left, Right>
where Left: Unpin, Right: Unpin,

§

impl<Left, Right> UnsafeUnpin for AsyncAnd<Left, Right>
where Left: UnsafeUnpin, Right: UnsafeUnpin,

§

impl<Left, Right> UnwindSafe for AsyncAnd<Left, Right>
where Left: UnwindSafe, Right: 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.