pub struct IcmpSocket { /* private fields */ }
Implementations§
Methods from Deref<Target = IpSocket>§
pub fn local_ip(&self) -> Result<IpAddr>
pub async fn recv_from(&self, buf: &mut [u8]) -> Result<(usize, IpAddr)>
pub async fn send_to(&self, buf: &[u8], addr: IpAddr) -> Result<usize>
pub async fn recv_from_to( &self, buf: &mut [u8], ) -> Result<(usize, IpAddr, IpAddr)>
pub async fn recv_protocol_from_to( &self, buf: &mut [u8], ) -> Result<(usize, IpNextHeaderProtocol, IpAddr, IpAddr)>
pub async fn send_from_to( &self, buf: &[u8], src: IpAddr, dst: IpAddr, ) -> Result<usize>
pub async fn send_protocol_from_to( &self, buf: &[u8], protocol: IpNextHeaderProtocol, src: IpAddr, dst: IpAddr, ) -> Result<usize>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IcmpSocket
impl !RefUnwindSafe for IcmpSocket
impl Send for IcmpSocket
impl Sync for IcmpSocket
impl Unpin for IcmpSocket
impl !UnwindSafe for IcmpSocket
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