pub struct Ping<'a> { /* private fields */ }Implementations§
Source§impl<'a> Ping<'a>
impl<'a> Ping<'a>
pub fn new(addr: IpAddr) -> Self
pub fn socket_type(&mut self, socket_type: SocketType) -> &mut Self
pub fn timeout(&mut self, timeout: Duration) -> &mut Self
pub fn ttl(&mut self, ttl: u32) -> &mut Self
pub fn ident(&mut self, ident: u16) -> &mut Self
pub fn seq_cnt(&mut self, seq_cnt: u16) -> &mut Self
pub fn payload(&mut self, payload: &'a [u8; 24]) -> &mut Self
pub fn bind_device(&mut self, device: &'a str) -> &mut Self
pub fn send(&self) -> Result<PingResult, Error>
Auto Trait Implementations§
impl<'a> Freeze for Ping<'a>
impl<'a> RefUnwindSafe for Ping<'a>
impl<'a> Send for Ping<'a>
impl<'a> Sync for Ping<'a>
impl<'a> Unpin for Ping<'a>
impl<'a> UnwindSafe for Ping<'a>
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