pub struct UdpHeader {
pub source: u16,
pub destination: u16,
pub length: u16,
pub checksum: u16,
}
Expand description
Represents the UDP header.
Fields§
§source: u16
§destination: u16
§length: u16
§checksum: u16
Implementations§
Trait Implementations§
impl Eq for UdpHeader
impl StructuralPartialEq for UdpHeader
Auto Trait Implementations§
impl Freeze for UdpHeader
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