pub struct NoDefaultAlpn;
Expand description
A signal to not include the service’s default ALPNs in the ALPN set.
For each service that uses SVCB, a set of default Alpn
protocols
is defined. This set will be included even if they are not explicitely
provided via the ALPN value. The no-default-alpn value can be used to
signal that they should not be included.
This value is always empty.
Implementations§
source§impl NoDefaultAlpn
impl NoDefaultAlpn
Trait Implementations§
source§impl Clone for NoDefaultAlpn
impl Clone for NoDefaultAlpn
source§fn clone(&self) -> NoDefaultAlpn
fn clone(&self) -> NoDefaultAlpn
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 ComposeSvcParamValue for NoDefaultAlpn
impl ComposeSvcParamValue for NoDefaultAlpn
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 Debug for NoDefaultAlpn
impl Debug for NoDefaultAlpn
source§impl Display for NoDefaultAlpn
impl Display for NoDefaultAlpn
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 Hash for NoDefaultAlpn
impl Hash for NoDefaultAlpn
source§impl<'a, Octs: Octets + ?Sized> ParseSvcParamValue<'a, Octs> for NoDefaultAlpn
impl<'a, Octs: Octets + ?Sized> ParseSvcParamValue<'a, Octs> for NoDefaultAlpn
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 PartialEq<NoDefaultAlpn> for NoDefaultAlpn
impl PartialEq<NoDefaultAlpn> for NoDefaultAlpn
source§fn eq(&self, other: &NoDefaultAlpn) -> bool
fn eq(&self, other: &NoDefaultAlpn) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl SvcParamValue for NoDefaultAlpn
impl SvcParamValue for NoDefaultAlpn
source§fn key(&self) -> SvcParamKey
fn key(&self) -> SvcParamKey
Returns the parameter key of the value.
impl Copy for NoDefaultAlpn
impl Eq for NoDefaultAlpn
impl StructuralEq for NoDefaultAlpn
impl StructuralPartialEq for NoDefaultAlpn
Auto Trait Implementations§
impl RefUnwindSafe for NoDefaultAlpn
impl Send for NoDefaultAlpn
impl Sync for NoDefaultAlpn
impl Unpin for NoDefaultAlpn
impl UnwindSafe for NoDefaultAlpn
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.