pub struct HTTPS<'a>(pub SVCB<'a>);
Expand description
Tuple Fields§
§0: SVCB<'a>
Implementations§
Methods from Deref<Target = SVCB<'a>>§
Sourcepub fn set_param(&mut self, param: SVCParam<'a>)
pub fn set_param(&mut self, param: SVCParam<'a>)
Sets a parameter, replacing any previous value.
Sourcepub fn set_mandatory(&mut self, keys: impl Iterator<Item = u16>)
pub fn set_mandatory(&mut self, keys: impl Iterator<Item = u16>)
Sets the “mandatory” parameter.
If keys
is empty, this method does nothing.
Sourcepub fn set_alpn(&mut self, alpn_ids: &[CharacterString<'a>])
pub fn set_alpn(&mut self, alpn_ids: &[CharacterString<'a>])
Sets the “alpn” parameter.
if alpn_ids
is empty, this method does nothing.
Sourcepub fn set_no_default_alpn(&mut self)
pub fn set_no_default_alpn(&mut self)
Sets the “no-default-alpn” parameter.
Sourcepub fn set_ipv4hint(&mut self, ips: &[u32])
pub fn set_ipv4hint(&mut self, ips: &[u32])
Sets the “ipv4hint” parameter.
if ips
is empty, this method does nothing.
Sourcepub fn set_ipv6hint(&mut self, ips: &[u128])
pub fn set_ipv6hint(&mut self, ips: &[u128])
Sets the “ipv6hint” parameter.
if ips
is empty, this method does nothing
Sourcepub fn get_param(&'a self, key: u16) -> Option<&'a SVCParam<'a>>
pub fn get_param(&'a self, key: u16) -> Option<&'a SVCParam<'a>>
Gets a read-only reference to the SVCParam
Returns None
if the key does not exist.
Sourcepub fn iter_params(&self) -> impl Iterator<Item = &SVCParam<'_>>
pub fn iter_params(&self) -> impl Iterator<Item = &SVCParam<'_>>
Iterates over all parameters.
Trait Implementations§
impl<'a> Eq for HTTPS<'a>
impl<'a> StructuralPartialEq for HTTPS<'a>
Auto Trait Implementations§
impl<'a> Freeze for HTTPS<'a>
impl<'a> RefUnwindSafe for HTTPS<'a>
impl<'a> Send for HTTPS<'a>
impl<'a> Sync for HTTPS<'a>
impl<'a> Unpin for HTTPS<'a>
impl<'a> UnwindSafe for HTTPS<'a>
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