Struct usiem::events::firewall::FirewallEvent
source · 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
sourceimpl FirewallEvent
impl FirewallEvent
pub fn source_ip(&self) -> &SiemIp
pub fn destination_ip(&self) -> &SiemIp
pub fn network_protocol(&self) -> &NetworkProtocol
pub fn outcome(&self) -> &FirewallOutcome
pub fn in_interface(&self) -> &str
pub fn out_interface(&self) -> &str
Trait Implementations
sourceimpl Clone for FirewallEvent
impl Clone for FirewallEvent
sourcefn clone(&self) -> FirewallEvent
fn clone(&self) -> FirewallEvent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for FirewallEvent
impl Debug for FirewallEvent
sourceimpl Serialize for FirewallEvent
impl Serialize for FirewallEvent
Auto Trait Implementations
impl RefUnwindSafe for FirewallEvent
impl Send for FirewallEvent
impl Sync for FirewallEvent
impl Unpin for FirewallEvent
impl UnwindSafe for FirewallEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more