pub struct HostScope { /* private fields */ }Implementations§
Source§impl HostScope
impl HostScope
pub fn new(root: impl AsRef<str>) -> Result<Self, HostScopeError>
pub fn root(&self) -> &NormalizedHost
pub fn allows(&self, candidate: &str) -> bool
pub fn allows_normalized(&self, candidate: &NormalizedHost) -> bool
Returns the canonical target only when it is an HNS name inside this immutable scope.
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<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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