Struct usiem::events::firewall::FirewallEvent[][src]

pub struct FirewallEvent {
    pub source_ip: SiemIp,
    pub destination_ip: SiemIp,
    pub source_port: u16,
    pub destination_port: u16,
    pub network_protocol: NetworkProtocol,
    pub outcome: FirewallOutcome,
    pub in_bytes: u32,
    pub out_bytes: u32,
    pub in_interface: Cow<'static, str>,
    pub out_interface: Cow<'static, str>,
}

Fields

source_ip: SiemIp

Ip that started the connection

destination_ip: SiemIp

IP that received the connection

source_port: u16

Source port -> source.port

destination_port: u16

Destination port -> destintion.port

network_protocol: NetworkProtocol

Protocol used for the connection.

outcome: FirewallOutcome

What happened to the connection

in_bytes: u32

Bytes received. Equals destination.bytes

out_bytes: u32

Bytes sended. Equals source.bytes

in_interface: Cow<'static, str>

Input interface for the connection

out_interface: Cow<'static, str>

Output interface for the connection

Implementations

impl FirewallEvent[src]

pub fn source_ip(&self) -> &SiemIp[src]

pub fn destination_ip(&self) -> &SiemIp[src]

pub fn network_protocol(&self) -> &NetworkProtocol[src]

pub fn outcome(&self) -> &FirewallOutcome[src]

pub fn in_interface(&self) -> &str[src]

pub fn out_interface(&self) -> &str[src]

Trait Implementations

impl Debug for FirewallEvent[src]

impl Serialize for FirewallEvent[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.