Enum etherparse::TcpOptionReadError [−][src]
pub enum TcpOptionReadError {
UnexpectedEndOfSlice {
option_id: u8,
expected_len: u8,
actual_len: usize,
},
UnexpectedSize {
option_id: u8,
size: u8,
},
UnknownId(u8),
}
Expand description
Errors that can occour while reading the options of a TCP header.
Variants
UnexpectedEndOfSlice
Returned if an option id was read, but there was not enough memory in the options left to completely read it.
UnexpectedSize
Returned if the option as an unexpected size argument (e.g. != 4 for maximum segment size).
UnknownId(u8)
Tuple Fields
0: u8
Returned if an unknown tcp header option is encountered.
The first element is the identifier and the slice contains the rest of data left in the options.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for TcpOptionReadError
impl Send for TcpOptionReadError
impl Sync for TcpOptionReadError
impl Unpin for TcpOptionReadError
impl UnwindSafe for TcpOptionReadError
Blanket Implementations
Mutably borrows from an owned value. Read more