Struct smoltcp::wire::EthernetFrame [−][src]
Expand description
A read/write wrapper around an Ethernet II frame buffer.
Implementations
Imbue a raw octet buffer with Ethernet frame structure.
Shorthand for a combination of new_unchecked and check_len.
Ensure that no accessor method will panic if called.
Returns Err(Error::Truncated)
if the buffer is too short.
Consumes the frame, returning the underlying buffer.
Return the length of a frame header.
Return the length of a buffer required to hold a packet with the payload of a given length.
Set the destination address field.
Set the source address field.
Set the EtherType field.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for Frame<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Frame<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more