Enum etherparse::TcpOptionReadError [−][src]
pub enum TcpOptionReadError { UnexpectedEndOfSlice(u8), UnexpectedSize { option_id: u8, size: u8, }, UnknownId(u8), }
Errors that can occour while reading the options of a TCP header.
Variants
UnexpectedEndOfSlice(u8)
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).
Fields of UnexpectedSize
option_id: u8 | |
size: u8 |
UnknownId(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
impl Clone for TcpOptionReadError
[src]
impl Clone for TcpOptionReadError
fn clone(&self) -> TcpOptionReadError
[src]
fn clone(&self) -> TcpOptionReadError
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for TcpOptionReadError
[src]
impl Debug for TcpOptionReadError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for TcpOptionReadError
[src]
impl Eq for TcpOptionReadError
impl PartialEq for TcpOptionReadError
[src]
impl PartialEq for TcpOptionReadError
fn eq(&self, other: &TcpOptionReadError) -> bool
[src]
fn eq(&self, other: &TcpOptionReadError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &TcpOptionReadError) -> bool
[src]
fn ne(&self, other: &TcpOptionReadError) -> bool
This method tests for !=
.
Auto Trait Implementations
impl Send for TcpOptionReadError
impl Send for TcpOptionReadError
impl Sync for TcpOptionReadError
impl Sync for TcpOptionReadError