pub struct L4Proto(pub u8);
Expand description
Layer 4 protocol (tcp/udp)
This looks unused
Tuple Fields§
§0: u8
Trait Implementations§
Source§impl FromBytes<'_> for L4Proto
impl FromBytes<'_> for L4Proto
Source§fn from_bytes(buf: &mut &[u8]) -> Result<Self, FromBytesError>where
Self: Sized,
fn from_bytes(buf: &mut &[u8]) -> Result<Self, FromBytesError>where
Self: Sized,
Read the binary representation of a field and return the parsed representation Read more
Source§fn from_maybe_bytes(buf: Option<&mut &'a [u8]>) -> Result<Self, FromBytesError>
fn from_maybe_bytes(buf: Option<&mut &'a [u8]>) -> Result<Self, FromBytesError>
Read the binary representation of a field from a buffer that may or may not exist Read more
Source§impl Ord for L4Proto
impl Ord for L4Proto
Source§impl PartialOrd for L4Proto
impl PartialOrd for L4Proto
impl Copy for L4Proto
impl Eq for L4Proto
impl StructuralPartialEq for L4Proto
Auto Trait Implementations§
impl Freeze for L4Proto
impl RefUnwindSafe for L4Proto
impl Send for L4Proto
impl Sync for L4Proto
impl Unpin for L4Proto
impl UnwindSafe for L4Proto
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