Enum domain::base::opt::AllOptData
source · #[non_exhaustive]pub enum AllOptData<Octs, Name> {
Show 13 variants
Dau(Dau<Octs>),
Dhu(Dhu<Octs>),
N3u(N3u<Octs>),
Chain(Chain<Name>),
Cookie(Cookie),
Expire(Expire),
ExtendedError(ExtendedError<Octs>),
TcpKeepalive(TcpKeepalive),
KeyTag(KeyTag<Octs>),
Nsid(Nsid<Octs>),
Padding(Padding<Octs>),
ClientSubnet(ClientSubnet),
Other(UnknownOptData<Octs>),
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Dau(Dau<Octs>)
Dhu(Dhu<Octs>)
N3u(N3u<Octs>)
Chain(Chain<Name>)
Cookie(Cookie)
Expire(Expire)
ExtendedError(ExtendedError<Octs>)
TcpKeepalive(TcpKeepalive)
KeyTag(KeyTag<Octs>)
Nsid(Nsid<Octs>)
Padding(Padding<Octs>)
ClientSubnet(ClientSubnet)
Other(UnknownOptData<Octs>)
Trait Implementations§
source§impl<Octs: Clone, Name: Clone> Clone for AllOptData<Octs, Name>
impl<Octs: Clone, Name: Clone> Clone for AllOptData<Octs, Name>
source§fn clone(&self) -> AllOptData<Octs, Name>
fn clone(&self) -> AllOptData<Octs, Name>
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<Octs, Name> ComposeOptData for AllOptData<Octs, Name>
impl<Octs, Name> ComposeOptData for AllOptData<Octs, Name>
fn compose_len(&self) -> u16
fn compose_option<Target: OctetsBuilder + ?Sized>( &self, target: &mut Target, ) -> Result<(), Target::AppendError>
source§impl<Octs, Name> From<Chain<Name>> for AllOptData<Octs, Name>
impl<Octs, Name> From<Chain<Name>> for AllOptData<Octs, Name>
source§impl<Octs, Name> From<ClientSubnet> for AllOptData<Octs, Name>
impl<Octs, Name> From<ClientSubnet> for AllOptData<Octs, Name>
source§fn from(value: ClientSubnet) -> Self
fn from(value: ClientSubnet) -> Self
Converts to this type from the input type.
source§impl<Octs, Name> From<Cookie> for AllOptData<Octs, Name>
impl<Octs, Name> From<Cookie> for AllOptData<Octs, Name>
source§impl<Octs, Name> From<Expire> for AllOptData<Octs, Name>
impl<Octs, Name> From<Expire> for AllOptData<Octs, Name>
source§impl<Octs, Name> From<ExtendedError<Octs>> for AllOptData<Octs, Name>
impl<Octs, Name> From<ExtendedError<Octs>> for AllOptData<Octs, Name>
source§fn from(value: ExtendedError<Octs>) -> Self
fn from(value: ExtendedError<Octs>) -> Self
Converts to this type from the input type.
source§impl<Octs, Name> From<KeyTag<Octs>> for AllOptData<Octs, Name>
impl<Octs, Name> From<KeyTag<Octs>> for AllOptData<Octs, Name>
source§impl<Octs, Name> From<Nsid<Octs>> for AllOptData<Octs, Name>
impl<Octs, Name> From<Nsid<Octs>> for AllOptData<Octs, Name>
source§impl<Octs, Name> From<Padding<Octs>> for AllOptData<Octs, Name>
impl<Octs, Name> From<Padding<Octs>> for AllOptData<Octs, Name>
source§impl<Octs, Name> From<TcpKeepalive> for AllOptData<Octs, Name>
impl<Octs, Name> From<TcpKeepalive> for AllOptData<Octs, Name>
source§fn from(value: TcpKeepalive) -> Self
fn from(value: TcpKeepalive) -> Self
Converts to this type from the input type.
source§impl<Octs, Name> From<Understood<DauVariant, Octs>> for AllOptData<Octs, Name>
impl<Octs, Name> From<Understood<DauVariant, Octs>> for AllOptData<Octs, Name>
source§impl<Octs, Name> From<Understood<DhuVariant, Octs>> for AllOptData<Octs, Name>
impl<Octs, Name> From<Understood<DhuVariant, Octs>> for AllOptData<Octs, Name>
source§impl<Octs, Name> From<Understood<N3uVariant, Octs>> for AllOptData<Octs, Name>
impl<Octs, Name> From<Understood<N3uVariant, Octs>> for AllOptData<Octs, Name>
source§impl<Octs, Name> OptData for AllOptData<Octs, Name>
impl<Octs, Name> OptData for AllOptData<Octs, Name>
source§fn code(&self) -> OptionCode
fn code(&self) -> OptionCode
Returns the option code associated with this option.
source§impl<'a, Octs: Octets> ParseOptData<'a, Octs> for AllOptData<Octs::Range<'a>, Dname<Octs::Range<'a>>>
impl<'a, Octs: Octets> ParseOptData<'a, Octs> for AllOptData<Octs::Range<'a>, Dname<Octs::Range<'a>>>
source§fn parse_option(
code: OptionCode,
parser: &mut Parser<'a, Octs>,
) -> Result<Option<Self>, ParseError>
fn parse_option( code: OptionCode, parser: &mut Parser<'a, Octs>, ) -> Result<Option<Self>, ParseError>
Parses the option code data. Read more
Auto Trait Implementations§
impl<Octs, Name> Freeze for AllOptData<Octs, Name>
impl<Octs, Name> RefUnwindSafe for AllOptData<Octs, Name>where
Octs: RefUnwindSafe,
Name: RefUnwindSafe,
impl<Octs, Name> Send for AllOptData<Octs, Name>
impl<Octs, Name> Sync for AllOptData<Octs, Name>
impl<Octs, Name> Unpin for AllOptData<Octs, Name>
impl<Octs, Name> UnwindSafe for AllOptData<Octs, Name>where
Octs: UnwindSafe,
Name: 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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
type Error = <Target as OctetsFrom<Source>>::Error
source§fn try_octets_into(
self,
) -> Result<Target, <Source as OctetsInto<Target>>::Error>
fn try_octets_into( self, ) -> Result<Target, <Source as OctetsInto<Target>>::Error>
Performs the conversion.
source§fn octets_into(self) -> Target
fn octets_into(self) -> Target
Performs an infallible conversion.