pub struct PingData<I: IpExt> {
pub addr: I::SockAddr,
pub sequence: u16,
pub body: Vec<u8>,
}
Expand description
Parameters of a ping request/reply.
Fields§
§addr: I::SockAddr
The destination address of a ping request; or the source address of a ping reply.
sequence: u16
The sequence number in the ICMP header.
body: Vec<u8>
The body of the echo request/reply.
Trait Implementations§
Source§impl<'a, I, S> Sink<PingData<I>> for PingSink<'a, I, S>where
I: IpExt,
S: IcmpSocket<I>,
impl<'a, I, S> Sink<PingData<I>> for PingSink<'a, I, S>where
I: IpExt,
S: IcmpSocket<I>,
Source§fn poll_ready(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Result<(), Self::Error>>
fn poll_ready( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<(), Self::Error>>
Attempts to prepare the
Sink
to receive a value. Read moreSource§fn start_send(self: Pin<&mut Self>, _: PingData<I>) -> Result<(), Self::Error>
fn start_send(self: Pin<&mut Self>, _: PingData<I>) -> Result<(), Self::Error>
Begin the process of sending a value to the sink.
Each call to this function must be preceded by a successful call to
poll_ready
which returned Poll::Ready(Ok(()))
. Read moreimpl<I: Eq + IpExt> Eq for PingData<I>
impl<I: IpExt> StructuralPartialEq for PingData<I>
Auto Trait Implementations§
impl<I> Freeze for PingData<I>
impl<I> RefUnwindSafe for PingData<I>
impl<I> Send for PingData<I>
impl<I> Sync for PingData<I>
impl<I> Unpin for PingData<I>
impl<I> UnwindSafe for PingData<I>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)