pub enum NetflowReadResult {
Packet {
len: usize,
src: IpAddr,
packet: NetflowPacket,
},
ParseError {
len: usize,
src: IpAddr,
version: Option<u16>,
},
Timeout,
}Expand description
Result of reading a raw NetFlow/IPFIX packet.
Variants§
Packet
Successfully parsed a packet.
ParseError
Received data but failed to parse it.
Timeout
No data available (timeout or would block).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NetflowReadResult
impl RefUnwindSafe for NetflowReadResult
impl Send for NetflowReadResult
impl Sync for NetflowReadResult
impl Unpin for NetflowReadResult
impl UnsafeUnpin for NetflowReadResult
impl UnwindSafe for NetflowReadResult
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