pub struct HostScope { /* private fields */ }Expand description
Immutable HNS TLD scope.
Implementations§
Source§impl HostScope
impl HostScope
Sourcepub fn from_verified_hns_tld(root: &str) -> Result<Self, ProxyError>
pub fn from_verified_hns_tld(root: &str) -> Result<Self, ProxyError>
Construct from a proof-verified single-label HNS TLD.
Verify equality or a label-boundary subdomain.
Sourcepub const fn root(&self) -> &NormalizedHost
pub const fn root(&self) -> &NormalizedHost
Redacted canonical scope root for equality checks.
Trait Implementations§
impl Eq for HostScope
impl StructuralPartialEq for HostScope
Auto Trait Implementations§
impl Freeze for HostScope
impl RefUnwindSafe for HostScope
impl Send for HostScope
impl Sync for HostScope
impl Unpin for HostScope
impl UnsafeUnpin for HostScope
impl UnwindSafe for HostScope
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.