pub enum Error {
InvalidSize,
InvalidHardwareType,
InvalidHardwareSize,
InvalidProtocolType,
InvalidProtocolSize,
InvalidOpCode,
}
Variants§
InvalidSize
Invalid size, too small (at least 28 bytes)
InvalidHardwareType
Invalid hardware type, only ethernet supported
InvalidHardwareSize
Invalid hardware size, only ethernet address size (6 bytes) supported
InvalidProtocolType
Invalid protocol type, only ipv4 supported
InvalidProtocolSize
Invalid protocol size, only ipv4 address size (4 bytes) supported
InvalidOpCode
Invalid operation code, only REQUEST (1) or REPLY (2) allowed
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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