pub enum AllValues<Octs> {
Mandatory(Mandatory<Octs>),
Alpn(Alpn<Octs>),
NoDefaultAlpn(NoDefaultAlpn),
Port(Port),
Ech(Ech<Octs>),
Ipv4Hint(Ipv4Hint<Octs>),
Ipv6Hint(Ipv6Hint<Octs>),
DohPath(DohPath<Octs>),
Unknown(UnknownSvcParam<Octs>),
}
Expand description
All known service bindings parameter values.
This type allows parsing all known parameter values into their dedicated type and all unknown values into their raw form.
Variants§
Mandatory(Mandatory<Octs>)
Alpn(Alpn<Octs>)
NoDefaultAlpn(NoDefaultAlpn)
Port(Port)
Ech(Ech<Octs>)
Ipv4Hint(Ipv4Hint<Octs>)
Ipv6Hint(Ipv6Hint<Octs>)
DohPath(DohPath<Octs>)
Unknown(UnknownSvcParam<Octs>)
Trait Implementations§
source§impl<Octs: AsRef<[u8]>> ComposeSvcParamValue for AllValues<Octs>
impl<Octs: AsRef<[u8]>> ComposeSvcParamValue for AllValues<Octs>
source§fn compose_len(&self) -> u16
fn compose_len(&self) -> u16
Returns the length of the composed value.
source§fn compose_value<Target: OctetsBuilder + ?Sized>(
&self,
target: &mut Target,
) -> Result<(), Target::AppendError>
fn compose_value<Target: OctetsBuilder + ?Sized>( &self, target: &mut Target, ) -> Result<(), Target::AppendError>
Appends the wire format of the value to the end of
target
.source§impl<Octs> From<NoDefaultAlpn> for AllValues<Octs>
impl<Octs> From<NoDefaultAlpn> for AllValues<Octs>
source§fn from(p: NoDefaultAlpn) -> Self
fn from(p: NoDefaultAlpn) -> Self
Converts to this type from the input type.
source§impl<Octs> From<UnknownSvcParam<Octs>> for AllValues<Octs>
impl<Octs> From<UnknownSvcParam<Octs>> for AllValues<Octs>
source§fn from(p: UnknownSvcParam<Octs>) -> Self
fn from(p: UnknownSvcParam<Octs>) -> Self
Converts to this type from the input type.
source§impl<'a, Octs> ParseSvcParamValue<'a, Octs> for AllValues<Octs::Range<'a>>
impl<'a, Octs> ParseSvcParamValue<'a, Octs> for AllValues<Octs::Range<'a>>
source§fn parse_value(
key: SvcParamKey,
parser: &mut Parser<'a, Octs>,
) -> Result<Option<Self>, ParseError>
fn parse_value( key: SvcParamKey, parser: &mut Parser<'a, Octs>, ) -> Result<Option<Self>, ParseError>
Parse a parameter value from wire format. Read more
source§impl<Octs> SvcParamValue for AllValues<Octs>
impl<Octs> SvcParamValue for AllValues<Octs>
source§fn key(&self) -> SvcParamKey
fn key(&self) -> SvcParamKey
Returns the parameter key of the value.
impl<Octs: AsRef<[u8]>> Eq for AllValues<Octs>
Auto Trait Implementations§
impl<Octs> Freeze for AllValues<Octs>where
Octs: Freeze,
impl<Octs> RefUnwindSafe for AllValues<Octs>where
Octs: RefUnwindSafe,
impl<Octs> Send for AllValues<Octs>where
Octs: Send,
impl<Octs> Sync for AllValues<Octs>where
Octs: Sync,
impl<Octs> Unpin for AllValues<Octs>where
Octs: Unpin,
impl<Octs> UnwindSafe for AllValues<Octs>where
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
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.