pub struct IsMulticastMutator { /* private fields */ }Expand description
Mutator that checks if an IP address is a multicast address.
Returns true if the IP is in a multicast range:
- IPv4: 224.0.0.0/4 (224.0.0.0 – 239.255.255.255)
- IPv6: ff00::/8
Implementations§
Source§impl IsMulticastMutator
impl IsMulticastMutator
pub fn new(params: MutatorParams) -> Self
Trait Implementations§
Source§impl Mutator for IsMulticastMutator
impl Mutator for IsMulticastMutator
Source§fn returns_boolean(&self) -> bool
fn returns_boolean(&self) -> bool
Answers a boolean ABOUT the address, so ip | is_multicast with no
operator is a FILTER (eq true), not a projection. See
Mutator::returns_boolean.
Source§fn apply(
&self,
_field_name: &str,
_record: &JsonValue,
value: &JsonValue,
) -> Result<JsonValue>
fn apply( &self, _field_name: &str, _record: &JsonValue, value: &JsonValue, ) -> Result<JsonValue>
Apply the mutator to a value Read more
Source§fn is_enrichment(&self) -> bool
fn is_enrichment(&self) -> bool
Check if this mutator is an enrichment mutator Read more
Auto Trait Implementations§
impl Freeze for IsMulticastMutator
impl RefUnwindSafe for IsMulticastMutator
impl Send for IsMulticastMutator
impl Sync for IsMulticastMutator
impl Unpin for IsMulticastMutator
impl UnsafeUnpin for IsMulticastMutator
impl UnwindSafe for IsMulticastMutator
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> 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