pub enum OptionParseErr<E> {
Internal,
External(E),
}
Expand description
Errors returned from parsing options.
OptionParseErr
is either Internal
, which indicates that this module
encountered a malformed sequence of options (likely with a length field
larger than the remaining bytes in the options buffer), or External
,
which indicates that the OptionsImpl::parse
callback returned an error.
Variants§
Trait Implementations§
Source§impl<E: Debug> Debug for OptionParseErr<E>
impl<E: Debug> Debug for OptionParseErr<E>
Source§impl<E: PartialEq> PartialEq for OptionParseErr<E>
impl<E: PartialEq> PartialEq for OptionParseErr<E>
impl<E: Eq> Eq for OptionParseErr<E>
impl<E> StructuralPartialEq for OptionParseErr<E>
Auto Trait Implementations§
impl<E> Freeze for OptionParseErr<E>where
E: Freeze,
impl<E> RefUnwindSafe for OptionParseErr<E>where
E: RefUnwindSafe,
impl<E> Send for OptionParseErr<E>where
E: Send,
impl<E> Sync for OptionParseErr<E>where
E: Sync,
impl<E> Unpin for OptionParseErr<E>where
E: Unpin,
impl<E> UnwindSafe for OptionParseErr<E>where
E: 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