pub struct Allowlist(/* private fields */);Expand description
The host’s allowlist, parsed.
Implementations§
Source§impl Allowlist
impl Allowlist
Sourcepub fn new(entries: &[String]) -> Result<Self, EndpointError>
pub fn new(entries: &[String]) -> Result<Self, EndpointError>
Every entry an origin (no path), none a wildcard or with user information; the list not empty.
Trait Implementations§
impl Eq for Allowlist
impl StructuralPartialEq for Allowlist
Auto Trait Implementations§
impl Freeze for Allowlist
impl RefUnwindSafe for Allowlist
impl Send for Allowlist
impl Sync for Allowlist
impl Unpin for Allowlist
impl UnsafeUnpin for Allowlist
impl UnwindSafe for Allowlist
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