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>where
Octs: AsRef<[u8]>,
Name: ToDname,
impl<Octs, Name> ComposeOptData for AllOptData<Octs, Name>where Octs: AsRef<[u8]>, Name: ToDname,
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> RefUnwindSafe for AllOptData<Octs, Name>where Name: RefUnwindSafe, Octs: RefUnwindSafe,
impl<Octs, Name> Send for AllOptData<Octs, Name>where Name: Send, Octs: Send,
impl<Octs, Name> Sync for AllOptData<Octs, Name>where Name: Sync, Octs: Sync,
impl<Octs, Name> Unpin for AllOptData<Octs, Name>where Name: Unpin, Octs: Unpin,
impl<Octs, Name> UnwindSafe for AllOptData<Octs, Name>where Name: UnwindSafe, Octs: 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<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) -> Targetwhere
Self::Error: Into<Infallible>,
fn octets_into(self) -> Targetwhere Self::Error: Into<Infallible>,
Performs an infallible conversion.