pub struct ProbeSetting {Show 13 fields
pub if_index: u32,
pub if_name: String,
pub src_mac: MacAddr,
pub dst_mac: MacAddr,
pub src_ip: IpAddr,
pub src_port: u16,
pub probe_target: ProbeTarget,
pub probe_types: Vec<ProbeType>,
pub timeout: Duration,
pub wait_time: Duration,
pub send_rate: Duration,
pub tunnel: bool,
pub loopback: bool,
}
Expand description
Probe setting
Fields§
§if_index: u32
Index of network interface
if_name: String
Name of network interface
src_mac: MacAddr
Source MAC Address
dst_mac: MacAddr
Destination MAC Address
src_ip: IpAddr
Source IP Address
src_port: u16
Source port
probe_target: ProbeTarget
Probe Target
probe_types: Vec<ProbeType>
Probe Types
timeout: Duration
Timeout setting
wait_time: Duration
Wait time after send task is finished
send_rate: Duration
Packet send rate
tunnel: bool
Use TUN interface
loopback: bool
Use loopback interface
Trait Implementations§
Source§impl Clone for ProbeSetting
impl Clone for ProbeSetting
Source§fn clone(&self) -> ProbeSetting
fn clone(&self) -> ProbeSetting
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for ProbeSetting
impl RefUnwindSafe for ProbeSetting
impl Send for ProbeSetting
impl Sync for ProbeSetting
impl Unpin for ProbeSetting
impl UnwindSafe for ProbeSetting
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