Enum etherparse::TcpOptionWriteError [−][src]
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(&self) -> TcpOptionWriteError
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TcpOptionWriteError
[src]
impl Eq for TcpOptionWriteError
[src]
impl PartialEq<TcpOptionWriteError> for TcpOptionWriteError
[src]
fn eq(&self, other: &TcpOptionWriteError) -> bool
[src]
fn ne(&self, other: &TcpOptionWriteError) -> bool
[src]
impl StructuralEq for TcpOptionWriteError
[src]
impl StructuralPartialEq for TcpOptionWriteError
[src]
Auto Trait Implementations
impl RefUnwindSafe for TcpOptionWriteError
[src]
impl Send for TcpOptionWriteError
[src]
impl Sync for TcpOptionWriteError
[src]
impl Unpin for TcpOptionWriteError
[src]
impl UnwindSafe for TcpOptionWriteError
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,