pub struct AllowAll;Expand description
Accepts every packet unconditionally. Useful as a placeholder while a
route is being developed, or as one side of an OrVerifier where
the other side is expected to do the real work.
Implementations§
Trait Implementations§
impl Copy for AllowAll
Source§impl DataVerifier for AllowAll
impl DataVerifier for AllowAll
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 InterestVerifier for AllowAll
impl InterestVerifier for AllowAll
fn verify<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_data: &'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 VerifierEx for AllowAll
impl VerifierEx for AllowAll
Source§fn or<T: Sized>(self, other: T) -> OrVerifier<Self, T>
fn or<T: Sized>(self, other: T) -> OrVerifier<Self, T>
Accepts a packet if either
self or other accepts it.Source§fn and<T: Sized>(self, other: T) -> AndVerifier<Self, T>
fn and<T: Sized>(self, other: T) -> AndVerifier<Self, T>
Accepts a packet only if both
self and other accept it.Auto Trait Implementations§
impl Freeze for AllowAll
impl RefUnwindSafe for AllowAll
impl Send for AllowAll
impl Sync for AllowAll
impl Unpin for AllowAll
impl UnsafeUnpin for AllowAll
impl UnwindSafe for AllowAll
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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