pub struct CustomScriptFilter { /* private fields */ }Expand description
Executes an external script/binary to evaluate connections and identifiers.
Implementations§
Source§impl CustomScriptFilter
impl CustomScriptFilter
Sourcepub fn from_settings(name: &str, settings: &Settings) -> Result<Self>
pub fn from_settings(name: &str, settings: &Settings) -> Result<Self>
Validates the configuration and creates the check.
Trait Implementations§
Source§impl Check for CustomScriptFilter
impl Check for CustomScriptFilter
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_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,
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,
Auto Trait Implementations§
impl Freeze for CustomScriptFilter
impl RefUnwindSafe for CustomScriptFilter
impl Send for CustomScriptFilter
impl Sync for CustomScriptFilter
impl Unpin for CustomScriptFilter
impl UnsafeUnpin for CustomScriptFilter
impl UnwindSafe for CustomScriptFilter
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