[][src]Enum etherparse::TcpOptionWriteError

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]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Eq for TcpOptionWriteError[src]

impl PartialEq<TcpOptionWriteError> for TcpOptionWriteError[src]

impl Debug for TcpOptionWriteError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]