pub struct DhcpEvent {
pub source_ip: SiemIp,
pub source_mac: u128,
pub record_type: DhcpRecordType,
pub source_hostname: Cow<'static, str>,
pub hostname: Cow<'static, str>,
}
Fields
source_ip: SiemIp
Client IP address assigned, requested or cleaned
source_mac: u128
Client MAC address
record_type: DhcpRecordType
Request or assignation
source_hostname: Cow<'static, str>
Client HostName
hostname: Cow<'static, str>
DHCP server HostName
Implementations
sourceimpl DhcpEvent
impl DhcpEvent
pub fn source_ip(&self) -> &SiemIp
pub fn source_mac(&self) -> &u128
pub fn record_type(&self) -> &DhcpRecordType
pub fn source_hostname(&self) -> &str
pub fn hostname(&self) -> &str
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DhcpEvent
impl Send for DhcpEvent
impl Sync for DhcpEvent
impl Unpin for DhcpEvent
impl UnwindSafe for DhcpEvent
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