[][src]Enum wirefilter::LhsValue

#[repr(u8)]
pub enum LhsValue<'a> { Ip(IpAddr), Bytes(&'a [u8]), Int(i32), Bool(bool), }

An LHS value provided for filter execution.

These are passed to the execution context and are used by filters for execution and comparisons.

Variants

Ip(IpAddr)

An IPv4 or IPv6 field.

These are represented as a single type to allow interop comparisons.

Bytes(&'a [u8])

A raw bytes or a string field.

These are completely interchangeable in runtime and differ only in syntax representation, so we represent them as a single type.

Int(i32)

A 32-bit integer number.

Bool(bool)

A boolean.

Trait Implementations

impl<'a> GetType for LhsValue<'a>[src]

impl<'a> PartialEq<LhsValue<'a>> for LhsValue<'a>[src]

impl<'a> From<&'a str> for LhsValue<'a>[src]

impl<'a> From<IpAddr> for LhsValue<'a>[src]

impl<'a> From<&'a [u8]> for LhsValue<'a>[src]

impl<'a> From<i32> for LhsValue<'a>[src]

impl<'a> From<bool> for LhsValue<'a>[src]

impl<'a> Clone for LhsValue<'a>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> Eq for LhsValue<'a>[src]

impl<'a> Debug for LhsValue<'a>[src]

impl<'de: 'a, 'a> Deserialize<'de> for LhsValue<'a>[src]

Auto Trait Implementations

impl<'a> Send for LhsValue<'a>

impl<'a> Sync for LhsValue<'a>

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<Q, K> Equivalent for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]