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>

source§

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)

Performs copy-assignment from source. Read more
source§

impl<Octs, Name> ComposeOptData for AllOptData<Octs, Name>
where Octs: AsRef<[u8]>, Name: ToDname,

source§

fn compose_len(&self) -> u16

source§

fn compose_option<Target: OctetsBuilder + ?Sized>( &self, target: &mut Target, ) -> Result<(), Target::AppendError>

source§

impl<Octs, Name> From<Chain<Name>> for AllOptData<Octs, Name>

source§

fn from(value: Chain<Name>) -> Self

Converts to this type from the input type.
source§

impl<Octs, Name> From<ClientSubnet> for AllOptData<Octs, Name>

source§

fn from(value: ClientSubnet) -> Self

Converts to this type from the input type.
source§

impl<Octs, Name> From<Cookie> for AllOptData<Octs, Name>

source§

fn from(value: Cookie) -> Self

Converts to this type from the input type.
source§

impl<Octs, Name> From<Expire> for AllOptData<Octs, Name>

source§

fn from(value: Expire) -> Self

Converts to this type from the input type.
source§

impl<Octs, Name> From<ExtendedError<Octs>> for AllOptData<Octs, Name>

source§

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>

source§

fn from(value: KeyTag<Octs>) -> Self

Converts to this type from the input type.
source§

impl<Octs, Name> From<Nsid<Octs>> for AllOptData<Octs, Name>

source§

fn from(value: Nsid<Octs>) -> Self

Converts to this type from the input type.
source§

impl<Octs, Name> From<Padding<Octs>> for AllOptData<Octs, Name>

source§

fn from(value: Padding<Octs>) -> Self

Converts to this type from the input type.
source§

impl<Octs, Name> From<TcpKeepalive> for AllOptData<Octs, Name>

source§

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>

source§

fn from(value: Dau<Octs>) -> Self

Converts to this type from the input type.
source§

impl<Octs, Name> From<Understood<DhuVariant, Octs>> for AllOptData<Octs, Name>

source§

fn from(value: Dhu<Octs>) -> Self

Converts to this type from the input type.
source§

impl<Octs, Name> From<Understood<N3uVariant, Octs>> for AllOptData<Octs, Name>

source§

fn from(value: N3u<Octs>) -> Self

Converts to this type from the input type.
source§

impl<Octs, Name> OptData for AllOptData<Octs, Name>

source§

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>>>

source§

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>
where Octs: Freeze, Name: Freeze,

§

impl<Octs, Name> RefUnwindSafe for AllOptData<Octs, Name>
where Octs: RefUnwindSafe, Name: RefUnwindSafe,

§

impl<Octs, Name> Send for AllOptData<Octs, Name>
where Octs: Send, Name: Send,

§

impl<Octs, Name> Sync for AllOptData<Octs, Name>
where Octs: Sync, Name: Sync,

§

impl<Octs, Name> Unpin for AllOptData<Octs, Name>
where Octs: Unpin, Name: Unpin,

§

impl<Octs, Name> UnwindSafe for AllOptData<Octs, Name>
where Octs: UnwindSafe, Name: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<Source, Target> OctetsInto<Target> for Source
where Target: OctetsFrom<Source>,

§

type Error = <Target as OctetsFrom<Source>>::Error

source§

fn try_octets_into( self, ) -> Result<Target, <Source as OctetsInto<Target>>::Error>

Performs the conversion.
source§

fn octets_into(self) -> Target
where Self::Error: Into<Infallible>,

Performs an infallible conversion.
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V