pub struct SixlowpanUdpNhcRepr(pub Repr);Expand description
A high-level representation of a 6LoWPAN NHC UDP header.
Tuple Fields§
§0: ReprImplementations§
Source§impl<'a> UdpNhcRepr
impl<'a> UdpNhcRepr
Sourcepub fn parse<T: AsRef<[u8]> + ?Sized>(
packet: &UdpNhcPacket<&'a T>,
src_addr: &Address,
dst_addr: &Address,
checksum_caps: &ChecksumCapabilities,
) -> Result<Self>
pub fn parse<T: AsRef<[u8]> + ?Sized>( packet: &UdpNhcPacket<&'a T>, src_addr: &Address, dst_addr: &Address, checksum_caps: &ChecksumCapabilities, ) -> Result<Self>
Parse a 6LoWPAN NHC UDP packet and return a high-level representation.
Sourcepub fn header_len(&self) -> usize
pub fn header_len(&self) -> usize
Return the length of a packet that will be emitted from this high-level representation.
Methods from Deref<Target = UdpRepr>§
Sourcepub fn header_len(&self) -> usize
pub fn header_len(&self) -> usize
Return the length of the packet header that will be emitted from this high-level representation.
Trait Implementations§
Source§impl Clone for UdpNhcRepr
impl Clone for UdpNhcRepr
Source§fn clone(&self) -> UdpNhcRepr
fn clone(&self) -> UdpNhcRepr
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UdpNhcRepr
impl Debug for UdpNhcRepr
Source§impl Deref for UdpNhcRepr
impl Deref for UdpNhcRepr
Source§impl DerefMut for UdpNhcRepr
impl DerefMut for UdpNhcRepr
Source§impl PartialEq for UdpNhcRepr
impl PartialEq for UdpNhcRepr
impl Copy for UdpNhcRepr
impl Eq for UdpNhcRepr
impl StructuralPartialEq for UdpNhcRepr
Auto Trait Implementations§
impl Freeze for UdpNhcRepr
impl RefUnwindSafe for UdpNhcRepr
impl Send for UdpNhcRepr
impl Sync for UdpNhcRepr
impl Unpin for UdpNhcRepr
impl UnwindSafe for UdpNhcRepr
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