pub struct TransportParams {
pub src_ip: IpAddr,
pub dst_ip: IpAddr,
pub packet_len: usize,
pub process_name: Option<String>,
pub process_id: Option<u32>,
}Expand description
Common parameters for transport layer parsing Note: Direction (is_outgoing) is determined by the protocol parsers based on local_ips, not passed as a parameter
Fields§
§src_ip: IpAddr§dst_ip: IpAddr§packet_len: usize§process_name: Option<String>§process_id: Option<u32>Implementations§
Trait Implementations§
Source§impl Clone for TransportParams
impl Clone for TransportParams
Source§fn clone(&self) -> TransportParams
fn clone(&self) -> TransportParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TransportParams
impl RefUnwindSafe for TransportParams
impl Send for TransportParams
impl Sync for TransportParams
impl Unpin for TransportParams
impl UnsafeUnpin for TransportParams
impl UnwindSafe for TransportParams
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