Enum etherparse::TcpOptionWriteError
source · pub enum TcpOptionWriteError {
NotEnoughSpace(usize),
}
Expand description
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§
source§impl Clone for TcpOptionWriteError
impl Clone for TcpOptionWriteError
source§fn clone(&self) -> TcpOptionWriteError
fn clone(&self) -> TcpOptionWriteError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TcpOptionWriteError
impl Debug for TcpOptionWriteError
source§impl Display for TcpOptionWriteError
impl Display for TcpOptionWriteError
source§impl Error for TcpOptionWriteError
Available on crate feature std
only.
impl Error for TcpOptionWriteError
Available on crate feature
std
only.source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl PartialEq for TcpOptionWriteError
impl PartialEq for TcpOptionWriteError
impl Eq for TcpOptionWriteError
impl StructuralPartialEq for TcpOptionWriteError
Auto Trait Implementations§
impl Freeze for TcpOptionWriteError
impl RefUnwindSafe for TcpOptionWriteError
impl Send for TcpOptionWriteError
impl Sync for TcpOptionWriteError
impl Unpin for TcpOptionWriteError
impl UnwindSafe for TcpOptionWriteError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)