pub enum TryParseAsOptionResult<O> {
Parsed(O),
OptionTypeMismatch,
ParseErr(OptionParseErr),
}Expand description
The result of attempting to parse an OptionWatchEntry as a specific NDP
option.
Variants§
Parsed(O)
The option was successfully parsed from the option body.
OptionTypeMismatch
The OptionWatchEntry’s option_type did not match that of the
desired option type.
ParseErr(OptionParseErr)
The option type did match the desired option type, but there was an error parsing the body.
Trait Implementations§
Source§impl<O: Debug> Debug for TryParseAsOptionResult<O>
impl<O: Debug> Debug for TryParseAsOptionResult<O>
Source§impl<O: PartialEq> PartialEq for TryParseAsOptionResult<O>
impl<O: PartialEq> PartialEq for TryParseAsOptionResult<O>
impl<O: Eq> Eq for TryParseAsOptionResult<O>
impl<O> StructuralPartialEq for TryParseAsOptionResult<O>
Auto Trait Implementations§
impl<O> Freeze for TryParseAsOptionResult<O>where
O: Freeze,
impl<O> RefUnwindSafe for TryParseAsOptionResult<O>where
O: RefUnwindSafe,
impl<O> Send for TryParseAsOptionResult<O>where
O: Send,
impl<O> Sync for TryParseAsOptionResult<O>where
O: Sync,
impl<O> Unpin for TryParseAsOptionResult<O>where
O: Unpin,
impl<O> UnwindSafe for TryParseAsOptionResult<O>where
O: 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
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
type Error = <U as TryFromExt<T>>::Error
Source§fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
Tries to perform the conversion.