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

Error when a u8 field in a header has a larger value then supported.

Fields of ValueU8TooLarge

Error when a u16 field in a header has a larger value then supported.

Fields of ValueU16TooLarge

Error when a u32 field in a header has a larger value then supported.

Fields of ValueU32TooLarge

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]

[src]

Formats the value using the given formatter.

impl From<Error> for WriteError
[src]

[src]

Performs the conversion.