pub struct UdpHeader {
pub origin: SocketAddrV4,
pub len: u16,
}
Expand description
W5500 UDP Header.
Fields§
§origin: SocketAddrV4
Origin IP address and port.
len: u16
Length of the UDP packet in bytes.
This may not be equal to the length of the data in the socket buffer if the UDP packet was truncated.
Trait Implementations§
source§impl Ord for UdpHeader
impl Ord for UdpHeader
source§impl PartialEq for UdpHeader
impl PartialEq for UdpHeader
source§impl PartialOrd for UdpHeader
impl PartialOrd for UdpHeader
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for UdpHeader
impl Eq for UdpHeader
impl StructuralEq for UdpHeader
impl StructuralPartialEq for UdpHeader
Auto Trait Implementations§
impl RefUnwindSafe for UdpHeader
impl Send for UdpHeader
impl Sync for UdpHeader
impl Unpin for UdpHeader
impl UnwindSafe for UdpHeader
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