Enum zero_packet::misc::IpProtocol
source · #[repr(u8)]pub enum IpProtocol {
ICMP = 1,
TCP = 6,
UDP = 17,
Unknown(u8),
}
Expand description
Common IP protocols.
Variants§
Trait Implementations§
source§impl Debug for IpProtocol
impl Debug for IpProtocol
source§impl From<u8> for IpProtocol
impl From<u8> for IpProtocol
source§impl PartialEq for IpProtocol
impl PartialEq for IpProtocol
source§fn eq(&self, other: &IpProtocol) -> bool
fn eq(&self, other: &IpProtocol) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for IpProtocol
Auto Trait Implementations§
impl Freeze for IpProtocol
impl RefUnwindSafe for IpProtocol
impl Send for IpProtocol
impl Sync for IpProtocol
impl Unpin for IpProtocol
impl UnwindSafe for IpProtocol
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