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: LogString,
pub out_interface: LogString,
}
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: LogString
Input interface for the connection
out_interface: LogString
Output interface for the connection
Implementations§
source§impl 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§
source§impl Clone for FirewallEvent
impl Clone for FirewallEvent
source§fn clone(&self) -> FirewallEvent
fn clone(&self) -> FirewallEvent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FirewallEvent
impl Debug for FirewallEvent
source§impl<'de> Deserialize<'de> for FirewallEvent
impl<'de> Deserialize<'de> for FirewallEvent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<FirewallEvent> for SiemLog
impl From<FirewallEvent> for SiemLog
source§fn from(val: FirewallEvent) -> Self
fn from(val: FirewallEvent) -> Self
Converts to this type from the input type.
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§
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