pub struct IpamFilter { /* private fields */ }Expand description
Requires every requested name to be one the inventory associates with the client’s address.
Implementations§
Source§impl IpamFilter
impl IpamFilter
Sourcepub fn new(ipam: Arc<IpamRegistry>) -> Self
pub fn new(ipam: Arc<IpamRegistry>) -> Self
Wraps the profile’s configured inventory.
Trait Implementations§
Source§impl Check for IpamFilter
impl Check for IpamFilter
Source§fn stages(&self) -> StageSet
fn stages(&self) -> StageSet
Identifiers only, and not overridable: a connection hook would query the
inventory on every newNonce.
Source§fn kind(&self) -> &'static str
fn kind(&self) -> &'static str
The check type (
allowed_ip, ipam, …), not the instance name — the
instance name is the policy’s key for it.fn check_identifiers<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
context: &'life1 IdentifierContext<'life2>,
) -> Pin<Box<dyn Future<Output = Verdict> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn check_connection<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_context: &'life1 ConnectionContext<'life2>,
) -> Pin<Box<dyn Future<Output = Verdict> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Auto Trait Implementations§
impl !RefUnwindSafe for IpamFilter
impl !UnwindSafe for IpamFilter
impl Freeze for IpamFilter
impl Send for IpamFilter
impl Sync for IpamFilter
impl Unpin for IpamFilter
impl UnsafeUnpin for IpamFilter
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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