pub struct AllowAll;Expand description
Admit everyone: the pre-K1 behaviour. Verified hellos still bind
source_node, but nothing is ever refused or limited.
Trait Implementations§
Source§impl AdmissionGate for AllowAll
impl AdmissionGate for AllowAll
Source§fn admit<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_: &'life1 VerifiedHello,
ctx: &'life2 AdmitContext,
) -> Pin<Box<dyn Future<Output = Admission> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn admit<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_: &'life1 VerifiedHello,
ctx: &'life2 AdmitContext,
) -> Pin<Box<dyn Future<Output = Admission> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
A hello verified; decide.
Source§fn admit_unverified<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_: &'life1 HelloFailure,
_: &'life2 AdmitContext,
) -> Pin<Box<dyn Future<Output = Admission> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn admit_unverified<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_: &'life1 HelloFailure,
_: &'life2 AdmitContext,
) -> Pin<Box<dyn Future<Output = Admission> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
No hello, or it failed verification; decide.
Source§fn strict(&self) -> bool
fn strict(&self) -> bool
True when the listener should apply the idle limit and the live
revocation check (a gate that actually checks peers). The per-IP cap
and first-frame timeout apply under every gate.
AllowAll is false so
quiet legacy leaves are not cut off once connected.Source§fn is_revoked(&self, _node_id: &str) -> bool
fn is_revoked(&self, _node_id: &str) -> bool
Whether an admitted peer has since been revoked and must be cut off
(re-checked on every frame). Only gates that refuse revoked peers at
admission say yes; the default never does.
impl Copy for AllowAll
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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