pub enum AllParams<Octets> {
Mandatory(Mandatory<Octets>),
Alpn(Alpn<Octets>),
NoDefaultAlpn(NoDefaultAlpn),
Port(Port),
Ech(Ech<Octets>),
Ipv4Hint(Ipv4Hint<Octets>),
Ipv6Hint(Ipv6Hint<Octets>),
DohPath(DohPath<Octets>),
Unknown(Unknown<Octets>),
}
Expand description
A enum to hold all the parameters.
Variants§
Mandatory(Mandatory<Octets>)
Alpn(Alpn<Octets>)
NoDefaultAlpn(NoDefaultAlpn)
Port(Port)
Ech(Ech<Octets>)
Ipv4Hint(Ipv4Hint<Octets>)
Ipv6Hint(Ipv6Hint<Octets>)
DohPath(DohPath<Octets>)
Unknown(Unknown<Octets>)
Trait Implementations§
source§impl<O: AsRef<[u8]>> Compose for AllParams<O>
impl<O: AsRef<[u8]>> Compose for AllParams<O>
source§impl<Octets> From<NoDefaultAlpn> for AllParams<Octets>
impl<Octets> From<NoDefaultAlpn> for AllParams<Octets>
source§fn from(p: NoDefaultAlpn) -> Self
fn from(p: NoDefaultAlpn) -> Self
Converts to this type from the input type.
source§impl<Octets: PartialEq> PartialEq<AllParams<Octets>> for AllParams<Octets>
impl<Octets: PartialEq> PartialEq<AllParams<Octets>> for AllParams<Octets>
impl<Octets: Eq> Eq for AllParams<Octets>
impl<Octets> StructuralEq for AllParams<Octets>
impl<Octets> StructuralPartialEq for AllParams<Octets>
Auto Trait Implementations§
impl<Octets> RefUnwindSafe for AllParams<Octets>where Octets: RefUnwindSafe,
impl<Octets> Send for AllParams<Octets>where Octets: Send,
impl<Octets> Sync for AllParams<Octets>where Octets: Sync,
impl<Octets> Unpin for AllParams<Octets>where Octets: Unpin,
impl<Octets> UnwindSafe for AllParams<Octets>where Octets: 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>,
source§fn octets_into(self) -> Result<Target, ShortBuf>
fn octets_into(self) -> Result<Target, ShortBuf>
Performs the conversion.