Enum etherparse::WriteError
[−]
[src]
pub enum WriteError {
IoError(Error),
ValueU8TooLarge {
value: u8,
max: u8,
field: ErrorField,
},
ValueU16TooLarge {
value: u16,
max: u16,
field: ErrorField,
},
ValueU32TooLarge {
value: u32,
max: u32,
field: ErrorField,
},
Ipv4OptionsLengthBad(usize),
}Errors that can occur when writing.
Variants
IoError(Error)ValueU8TooLargeError when a u8 field in a header has a larger value then supported.
Fields of ValueU8TooLarge
value: u8 | |
max: u8 | |
field: ErrorField |
ValueU16TooLargeError when a u16 field in a header has a larger value then supported.
Fields of ValueU16TooLarge
value: u16 | |
max: u16 | |
field: ErrorField |
ValueU32TooLargeError when a u32 field in a header has a larger value then supported.
Fields of ValueU32TooLarge
value: u32 | |
max: u32 | |
field: ErrorField |
Ipv4OptionsLengthBad(usize)Error when the ipv4 options length is too big (cannot be bigger then 40 bytes and must be a multiple of 4 bytes).
Trait Implementations
impl Debug for WriteError[src]
impl From<Error> for WriteError[src]
fn from(err: Error) -> WriteError[src]
Performs the conversion.