pub struct OptionWatchEntry {
pub interface_id: NonZeroU64,
pub source_address: Ipv6Addr,
pub option_type: OptionType,
pub body: OptionBody,
}Expand description
An entry representing a single option received in an NDP message.
The option_type and body are not guaranteed to be validated in any way
other than the body conforming to length requirements as specified in RFC
4861 section
4.6.
Fields§
§interface_id: NonZeroU64The interface on which the NDP message containing the option was received.
source_address: Ipv6AddrThe source address of the IPv6 packet containing the NDP message in which the option was received.
option_type: OptionTypeThe NDP option type.
body: OptionBodyThe body of the NDP option.
Implementations§
Source§impl OptionWatchEntry
impl OptionWatchEntry
Sourcepub fn try_parse_as_rdnss(
&self,
) -> TryParseAsOptionResult<RecursiveDnsServer<'_>>
pub fn try_parse_as_rdnss( &self, ) -> TryParseAsOptionResult<RecursiveDnsServer<'_>>
Tries to parse this entry as a Recursive DNS Server option.
Trait Implementations§
Source§impl Clone for OptionWatchEntry
impl Clone for OptionWatchEntry
Source§fn clone(&self) -> OptionWatchEntry
fn clone(&self) -> OptionWatchEntry
Returns a duplicate 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 OptionWatchEntry
impl Debug for OptionWatchEntry
Source§impl From<OptionWatchEntry> for OptionWatchEntry
impl From<OptionWatchEntry> for OptionWatchEntry
Source§fn from(value: OptionWatchEntry) -> Self
fn from(value: OptionWatchEntry) -> Self
Converts to this type from the input type.
Source§impl Hash for OptionWatchEntry
impl Hash for OptionWatchEntry
Source§impl Ord for OptionWatchEntry
impl Ord for OptionWatchEntry
Source§fn cmp(&self, other: &OptionWatchEntry) -> Ordering
fn cmp(&self, other: &OptionWatchEntry) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for OptionWatchEntry
impl PartialEq for OptionWatchEntry
Source§impl PartialOrd for OptionWatchEntry
impl PartialOrd for OptionWatchEntry
Source§impl TryFrom<OptionWatchEntry> for OptionWatchEntry
impl TryFrom<OptionWatchEntry> for OptionWatchEntry
impl Eq for OptionWatchEntry
impl StructuralPartialEq for OptionWatchEntry
Auto Trait Implementations§
impl Freeze for OptionWatchEntry
impl RefUnwindSafe for OptionWatchEntry
impl Send for OptionWatchEntry
impl Sync for OptionWatchEntry
impl Unpin for OptionWatchEntry
impl UnwindSafe for OptionWatchEntry
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§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.