pub struct ObliviousDoHConfigs { /* private fields */ }Expand description
Supplies config information to the client.
It contains one or more ObliviousDoHConfig structures in
decreasing order of preference. This allows a server to support multiple versions
of ODoH and multiple sets of ODoH HPKE suite parameters.
This information is designed to be disseminated via DNS HTTPS
records,
using the param odohconfig.
Implementations§
Source§impl ObliviousDoHConfigs
impl ObliviousDoHConfigs
Sourcepub fn supported(self) -> Vec<ObliviousDoHConfig>
pub fn supported(self) -> Vec<ObliviousDoHConfig>
Filter the list of configs, leave ones matches ODOH_VERSION.
Trait Implementations§
Source§impl Clone for ObliviousDoHConfigs
impl Clone for ObliviousDoHConfigs
Source§fn clone(&self) -> ObliviousDoHConfigs
fn clone(&self) -> ObliviousDoHConfigs
Returns a duplicate 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 Debug for ObliviousDoHConfigs
impl Debug for ObliviousDoHConfigs
Source§impl Deserialize for ObliviousDoHConfigs
impl Deserialize for ObliviousDoHConfigs
Source§impl From<Vec<ObliviousDoHConfig>> for ObliviousDoHConfigs
impl From<Vec<ObliviousDoHConfig>> for ObliviousDoHConfigs
Source§fn from(configs: Vec<ObliviousDoHConfig>) -> Self
fn from(configs: Vec<ObliviousDoHConfig>) -> Self
Converts to this type from the input type.
Source§impl IntoIterator for ObliviousDoHConfigs
impl IntoIterator for ObliviousDoHConfigs
Source§type Item = ObliviousDoHConfig
type Item = ObliviousDoHConfig
The type of the elements being iterated over.
Source§type IntoIter = Filter<IntoIter<ObliviousDoHConfig>, fn(&<ObliviousDoHConfigs as IntoIterator>::Item) -> bool>
type IntoIter = Filter<IntoIter<ObliviousDoHConfig>, fn(&<ObliviousDoHConfigs as IntoIterator>::Item) -> bool>
Which kind of iterator are we turning this into?
Auto Trait Implementations§
impl Freeze for ObliviousDoHConfigs
impl RefUnwindSafe for ObliviousDoHConfigs
impl Send for ObliviousDoHConfigs
impl Sync for ObliviousDoHConfigs
impl Unpin for ObliviousDoHConfigs
impl UnwindSafe for ObliviousDoHConfigs
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