pub enum EthernetFrameBuildError {
MissingDestination,
MissingSource,
MissingEtherType,
LengthOverflow {
header_length: usize,
payload_length: usize,
},
BufferTooShort {
required: usize,
available: usize,
},
}Expand description
Ethernet II frame construction. Ethernet II frame construction. Ethernet II frame construction. An allocation-free failure while constructing an Ethernet II frame.
These failures apply to the destination/source/type header prescribed by RFC 894.
Variants§
MissingDestination
No destination address was supplied.
MissingSource
No source address was supplied.
MissingEtherType
No protocol type was supplied.
LengthOverflow
Header length plus the requested payload length overflowed usize.
Fields
BufferTooShort
The caller buffer cannot hold the requested header and payload.
Trait Implementations§
Source§impl Clone for EthernetFrameBuildError
impl Clone for EthernetFrameBuildError
impl Copy for EthernetFrameBuildError
Source§impl Debug for EthernetFrameBuildError
impl Debug for EthernetFrameBuildError
Source§impl Display for EthernetFrameBuildError
impl Display for EthernetFrameBuildError
impl Eq for EthernetFrameBuildError
Source§impl PartialEq for EthernetFrameBuildError
impl PartialEq for EthernetFrameBuildError
impl StructuralPartialEq for EthernetFrameBuildError
Auto Trait Implementations§
impl Freeze for EthernetFrameBuildError
impl RefUnwindSafe for EthernetFrameBuildError
impl Send for EthernetFrameBuildError
impl Sync for EthernetFrameBuildError
impl Unpin for EthernetFrameBuildError
impl UnsafeUnpin for EthernetFrameBuildError
impl UnwindSafe for EthernetFrameBuildError
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