pub struct OrVerifier<T, U>(/* private fields */);
Implementations§
Source§impl<T, U> OrVerifier<T, U>
impl<T, U> OrVerifier<T, U>
pub fn new(__0: T, __1: U) -> OrVerifier<T, U>
Trait Implementations§
Source§impl<T: Clone, U: Clone> Clone for OrVerifier<T, U>
impl<T: Clone, U: Clone> Clone for OrVerifier<T, U>
Source§fn clone(&self) -> OrVerifier<T, U>
fn clone(&self) -> OrVerifier<T, U>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T, U> DataVerifier for OrVerifier<T, U>
impl<T, U> DataVerifier for OrVerifier<T, U>
fn verify<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
data: &'life1 Data<Bytes>,
context: Arc<RwLock<TypeMap>>,
app_handler: AppHandler,
signature_verifiers: &'life2 (dyn ToVerifier + Sync),
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Source§impl<T: Default, U: Default> Default for OrVerifier<T, U>
impl<T: Default, U: Default> Default for OrVerifier<T, U>
Source§fn default() -> OrVerifier<T, U>
fn default() -> OrVerifier<T, U>
Returns the “default value” for a type. Read more
Source§impl<T, U> InterestVerifier for OrVerifier<T, U>
impl<T, U> InterestVerifier for OrVerifier<T, U>
fn verify<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
interest: &'life1 Interest<Bytes>,
context: Arc<RwLock<TypeMap>>,
app_handler: AppHandler,
signature_verifiers: &'life2 (dyn ToVerifier + Sync),
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Source§impl<T, U> VerifierEx for OrVerifier<T, U>
impl<T, U> VerifierEx for OrVerifier<T, U>
fn or<T: Sized>(self, other: T) -> OrVerifier<Self, T>
fn and<T: Sized>(self, other: T) -> AndVerifier<Self, T>
impl<T: Copy, U: Copy> Copy for OrVerifier<T, U>
Auto Trait Implementations§
impl<T, U> Freeze for OrVerifier<T, U>
impl<T, U> RefUnwindSafe for OrVerifier<T, U>where
T: RefUnwindSafe,
U: RefUnwindSafe,
impl<T, U> Send for OrVerifier<T, U>
impl<T, U> Sync for OrVerifier<T, U>
impl<T, U> Unpin for OrVerifier<T, U>
impl<T, U> UnwindSafe for OrVerifier<T, U>where
T: UnwindSafe,
U: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more