#[non_exhaustive]pub enum IcmpSocketType {
Dgram,
Raw,
}Expand description
ICMP socket type, either DGRAM or RAW.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Trait Implementations§
Source§impl Clone for IcmpSocketType
impl Clone for IcmpSocketType
Source§fn clone(&self) -> IcmpSocketType
fn clone(&self) -> IcmpSocketType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for IcmpSocketType
Source§impl Debug for IcmpSocketType
impl Debug for IcmpSocketType
impl Eq for IcmpSocketType
Source§impl PartialEq for IcmpSocketType
impl PartialEq for IcmpSocketType
impl StructuralPartialEq for IcmpSocketType
Auto Trait Implementations§
impl Freeze for IcmpSocketType
impl RefUnwindSafe for IcmpSocketType
impl Send for IcmpSocketType
impl Sync for IcmpSocketType
impl Unpin for IcmpSocketType
impl UnsafeUnpin for IcmpSocketType
impl UnwindSafe for IcmpSocketType
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