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§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
)