Struct e_utils::traceroute::Config
source · [−]pub struct Config { /* private fields */ }Available on crate feature
traceroute only.Expand description
Traceroute configurations
Implementations
sourceimpl Config
impl Config
sourcepub fn with_port(self, port: u16) -> Self
pub fn with_port(self, port: u16) -> Self
Builder: Port for traceroute. Will be incremented on every query (except for TCP-based traceroute)
sourcepub fn with_max_hops(self, max_hops: u32) -> Self
pub fn with_max_hops(self, max_hops: u32) -> Self
Builder: Maximum number of hops
sourcepub fn with_number_of_queries(self, number_of_queries: u32) -> Self
pub fn with_number_of_queries(self, number_of_queries: u32) -> Self
Builder: Number of queries to run per hop
sourcepub fn with_protocol(self, protocol: Protocol) -> Self
pub fn with_protocol(self, protocol: Protocol) -> Self
Builder: Protocol. Supported: UDP, TCP, ICMP
sourcepub fn with_interface(self, network_interface: NetworkInterface) -> Self
pub fn with_interface(self, network_interface: NetworkInterface) -> Self
Builder: Interface that will be used for sending and receiving packets
sourcepub fn with_first_ttl(self, first_ttl: u8) -> Self
pub fn with_first_ttl(self, first_ttl: u8) -> Self
Builder: First TTL to record
sourcepub fn with_timeout(self, timeout: u64) -> Self
pub fn with_timeout(self, timeout: u64) -> Self
Builder: Timeout per query
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
