pub struct ScamperPingProbe { /* private fields */ }Expand description
A single ping probe.
Implementations§
Source§impl ScamperPingProbe
impl ScamperPingProbe
pub fn id(&self) -> u16
pub fn ipid(&self) -> u16
pub fn tx(&self) -> Option<SystemTime>
pub fn flags(&self) -> u32
Sourcepub fn reply(&self, i: u16) -> Option<ScamperPingReply>
pub fn reply(&self, i: u16) -> Option<ScamperPingReply>
Return the reply at index i for this probe.
Sourcepub fn reply_is_from_target(&self, reply: &ScamperPingReply) -> bool
pub fn reply_is_from_target(&self, reply: &ScamperPingReply) -> bool
Check if the given reply is from the target.
Trait Implementations§
Source§impl Drop for ScamperPingProbe
impl Drop for ScamperPingProbe
impl Send for ScamperPingProbe
impl Sync for ScamperPingProbe
Auto Trait Implementations§
impl Freeze for ScamperPingProbe
impl RefUnwindSafe for ScamperPingProbe
impl Unpin for ScamperPingProbe
impl UnsafeUnpin for ScamperPingProbe
impl UnwindSafe for ScamperPingProbe
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