pub struct AsyncOr<Left, Right> { /* private fields */ }Expand description
An asynchronous specification that accepts either operand.
Trait Implementations§
Source§impl<T: ?Sized + Sync, Left, Right> AsyncSpecification<T> for AsyncOr<Left, Right>
impl<T: ?Sized + Sync, Left, Right> AsyncSpecification<T> for AsyncOr<Left, Right>
Source§type Error = <Left as AsyncSpecification<T>>::Error
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
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<Left, Right> Freeze for AsyncOr<Left, Right>
impl<Left, Right> RefUnwindSafe for AsyncOr<Left, Right>where
Left: RefUnwindSafe,
Right: RefUnwindSafe,
impl<Left, Right> Send for AsyncOr<Left, Right>
impl<Left, Right> Sync for AsyncOr<Left, Right>
impl<Left, Right> Unpin for AsyncOr<Left, Right>
impl<Left, Right> UnsafeUnpin for AsyncOr<Left, Right>where
Left: UnsafeUnpin,
Right: UnsafeUnpin,
impl<Left, Right> UnwindSafe for AsyncOr<Left, Right>where
Left: UnwindSafe,
Right: 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