Enum etherparse::ReadError [] [src]

pub enum ReadError {
    IoError(Error),
    VlanDoubleTaggingUnexpectedOuterTpid(u16),
    IpUnsupportedVersion(u8),
    Ipv4UnexpectedVersion(u8),
    Ipv6UnexpectedVersion(u8),
    Ipv6TooManyHeaderExtensions,
}

Errors that can occur when reading.

Variants

Error when a double vlan tag was expected but the tpid of the outer vlan does not contain the expected id of 0x8100.

Error when the ip header version is not supported (only 4 & 6 are supported). The value is the version that was received.

Error when the ip header version field is not equal 4. The value is the version that was received.

Error when then ip header version field is not equal 6. The value is the version that was received.

Error when more then 7 header extensions are present (according to RFC82000 this should never happen).

Trait Implementations

impl Debug for ReadError
[src]

[src]

Formats the value using the given formatter. Read more

impl From<Error> for ReadError
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for ReadError

impl Sync for ReadError