pub struct Ekko { /* private fields */ }
Implementations§
source§impl Ekko
impl Ekko
sourcepub fn with_target<T: Into<IpAddr>>(target: T) -> Result<Ekko, EkkoError>
pub fn with_target<T: Into<IpAddr>>(target: T) -> Result<Ekko, EkkoError>
Build a sender with given target address.
sourcepub fn send(&self, hops: u32) -> Result<EkkoResponse, EkkoError>
pub fn send(&self, hops: u32) -> Result<EkkoResponse, EkkoError>
Send an echo request with default settings.
sourcepub fn send_with_settings(
&self,
hops: u32,
_: EkkoSettings
) -> Result<EkkoResponse, EkkoError>
pub fn send_with_settings( &self, hops: u32, _: EkkoSettings ) -> Result<EkkoResponse, EkkoError>
Send an echo request with user defined settings.
sourcepub fn send_range(
&self,
hops: Range<u32>
) -> Result<Vec<EkkoResponse>, EkkoError>
pub fn send_range( &self, hops: Range<u32> ) -> Result<Vec<EkkoResponse>, EkkoError>
Send echo requests for all hops in range with default settings.
sourcepub fn send_range_with_settings(
&self,
hops: Range<u32>,
_: EkkoSettings
) -> Result<Vec<EkkoResponse>, EkkoError>
pub fn send_range_with_settings( &self, hops: Range<u32>, _: EkkoSettings ) -> Result<Vec<EkkoResponse>, EkkoError>
Send echo requests for all hops in range with user defined settings.
Auto Trait Implementations§
impl RefUnwindSafe for Ekko
impl Send for Ekko
impl Sync for Ekko
impl Unpin for Ekko
impl UnwindSafe for Ekko
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