pub enum IpProto {
Tcp,
Udp,
Reserved,
}
Expand description
An IPv4 or IPv6 protocol number.
IpProto
encodes the protocol numbers whose values are the same for
both IPv4 and IPv6.
The protocol numbers are maintained by IANA.
Variants§
Trait Implementations§
Source§impl Ord for IpProto
impl Ord for IpProto
Source§impl PartialOrd for IpProto
impl PartialOrd for IpProto
impl Copy for IpProto
impl Eq for IpProto
impl StructuralPartialEq for IpProto
Auto Trait Implementations§
impl Freeze for IpProto
impl RefUnwindSafe for IpProto
impl Send for IpProto
impl Sync for IpProto
impl Unpin for IpProto
impl UnwindSafe for IpProto
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more