Struct rushmap_core::option::PingOption
source · pub struct PingOption {
pub interface_index: u32,
pub interface_name: String,
pub src_ip: IpAddr,
pub src_port: u16,
pub target: TargetInfo,
pub protocol: IpNextLevelProtocol,
pub count: u8,
pub timeout: Duration,
pub wait_time: Duration,
pub send_rate: Duration,
pub save_file_path: String,
pub json_output: bool,
}
Fields§
§interface_index: u32
§interface_name: String
§src_ip: IpAddr
§src_port: u16
§target: TargetInfo
§protocol: IpNextLevelProtocol
§count: u8
§timeout: Duration
§wait_time: Duration
§send_rate: Duration
§save_file_path: String
§json_output: bool
Implementations§
Trait Implementations§
source§impl Clone for PingOption
impl Clone for PingOption
source§fn clone(&self) -> PingOption
fn clone(&self) -> PingOption
Returns a copy 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 moresource§impl Debug for PingOption
impl Debug for PingOption
source§impl<'de> Deserialize<'de> for PingOption
impl<'de> Deserialize<'de> for PingOption
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for PingOption
impl Send for PingOption
impl Sync for PingOption
impl Unpin for PingOption
impl UnwindSafe for PingOption
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