pub enum NetPolicy {
DenyAll,
AllowList(HashSet<String>),
DenyList(HashSet<String>),
AllowAll,
}Expand description
Policy for network access.
Variants§
DenyAll
Deny all network access.
AllowList(HashSet<String>)
Allow only specific hosts/domains.
DenyList(HashSet<String>)
Deny specific hosts/domains (allow all others).
AllowAll
Allow all network access.
Implementations§
Trait Implementations§
impl StructuralPartialEq for NetPolicy
Auto Trait Implementations§
impl Freeze for NetPolicy
impl RefUnwindSafe for NetPolicy
impl Send for NetPolicy
impl Sync for NetPolicy
impl Unpin for NetPolicy
impl UnwindSafe for NetPolicy
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