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: u32Index of network interface
if_name: StringName of network interface
src_mac: MacAddrSource MAC Address
dst_mac: MacAddrDestination MAC Address
src_ip: IpAddrSource IP Address
src_port: u16Source port
probe_target: ProbeTargetProbe Target
probe_types: Vec<ProbeType>Probe Types
timeout: DurationTimeout setting
wait_time: DurationWait time after send task is finished
send_rate: DurationPacket send rate
tunnel: boolUse TUN interface
loopback: boolUse 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