pub struct EchoId(/* private fields */);
Expand description
Echo message “identifier” field.
§Examples
Constructing from a u16
with big-endian byte ordering:
use async_icmp::message::echo::EchoId;
let id: EchoId = EchoId::from_be(123);
Generating a random id via the rand
Distribution
impl (enabled via the rand
feature):
use async_icmp::message::echo::EchoId;
let id: EchoId = rand::random();
Implementations§
Trait Implementations§
Source§impl Distribution<EchoId> for Standard
impl Distribution<EchoId> for Standard
impl Copy for EchoId
impl Eq for EchoId
impl StructuralPartialEq for EchoId
Auto Trait Implementations§
impl Freeze for EchoId
impl RefUnwindSafe for EchoId
impl Send for EchoId
impl Sync for EchoId
impl Unpin for EchoId
impl UnwindSafe for EchoId
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.