pub enum ExtensionHeaderOptionDataParseResult<D> {
Ok(D),
ErrorAt(u32),
UnrecognizedKind,
}
Expand description
The result of parsing an extension header option data.
Variants§
Ok(D)
Successfully parsed data.
ErrorAt(u32)
An error occurred at the indicated offset within the option.
For example, if the data length goes wrong, you should probably make the offset to be 1 because in most (almost all) cases, the length is at the second byte of the option.
UnrecognizedKind
The option kind is not recognized.
Trait Implementations§
Source§impl<D: Debug> Debug for ExtensionHeaderOptionDataParseResult<D>
impl<D: Debug> Debug for ExtensionHeaderOptionDataParseResult<D>
Source§impl<D: PartialEq> PartialEq for ExtensionHeaderOptionDataParseResult<D>
impl<D: PartialEq> PartialEq for ExtensionHeaderOptionDataParseResult<D>
Source§fn eq(&self, other: &ExtensionHeaderOptionDataParseResult<D>) -> bool
fn eq(&self, other: &ExtensionHeaderOptionDataParseResult<D>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl<D: Eq> Eq for ExtensionHeaderOptionDataParseResult<D>
impl<D> StructuralPartialEq for ExtensionHeaderOptionDataParseResult<D>
Auto Trait Implementations§
impl<D> Freeze for ExtensionHeaderOptionDataParseResult<D>where
D: Freeze,
impl<D> RefUnwindSafe for ExtensionHeaderOptionDataParseResult<D>where
D: RefUnwindSafe,
impl<D> Send for ExtensionHeaderOptionDataParseResult<D>where
D: Send,
impl<D> Sync for ExtensionHeaderOptionDataParseResult<D>where
D: Sync,
impl<D> Unpin for ExtensionHeaderOptionDataParseResult<D>where
D: Unpin,
impl<D> UnwindSafe for ExtensionHeaderOptionDataParseResult<D>where
D: UnwindSafe,
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