Enum etherparse::TcpOptionWriteError [−][src]
pub enum TcpOptionWriteError {
NotEnoughSpace(usize),
}Errors that can occour when setting the options of a tcp header.
Variants
NotEnoughSpace(usize)There is not enough memory to store all options in the options section of the header (maximum 40 bytes).
The options size is limited by the 4 bit data_offset field in the header which describes the total tcp header size in multiple of 4 bytes. This leads to a maximum size for the options part of the header of 4*(15 - 5) (minus 5 for the size of the tcp header itself).
Trait Implementations
impl Clone for TcpOptionWriteError[src]
impl Clone for TcpOptionWriteErrorfn clone(&self) -> TcpOptionWriteError[src]
fn clone(&self) -> TcpOptionWriteErrorReturns 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 TcpOptionWriteError[src]
impl Debug for TcpOptionWriteErrorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Eq for TcpOptionWriteError[src]
impl Eq for TcpOptionWriteErrorimpl PartialEq for TcpOptionWriteError[src]
impl PartialEq for TcpOptionWriteErrorfn eq(&self, other: &TcpOptionWriteError) -> bool[src]
fn eq(&self, other: &TcpOptionWriteError) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &TcpOptionWriteError) -> bool[src]
fn ne(&self, other: &TcpOptionWriteError) -> boolThis method tests for !=.
Auto Trait Implementations
impl Send for TcpOptionWriteError
impl Send for TcpOptionWriteErrorimpl Sync for TcpOptionWriteError
impl Sync for TcpOptionWriteError