pub struct Policy { /* private fields */ }Expand description
A privacy policy manager.
It allows or blocks the requests to devices, or to a specific device, according to a set of privacy rules.
Implementations§
Source§impl Policy
impl Policy
Sourcepub fn only_local_policy(id: usize, hazards: Hazards) -> Self
pub fn only_local_policy(id: usize, hazards: Hazards) -> Self
Creates a Policy to block all crate::device::Device id
requests that have the given Hazards in their routes.
Sourcepub fn block_device_on_hazards(self, id: usize, hazards: Hazards) -> Self
pub fn block_device_on_hazards(self, id: usize, hazards: Hazards) -> Self
Adds a new Policy to block all crate::device::Device id
requests that have the given Hazards in their routes.
Trait Implementations§
impl StructuralPartialEq for Policy
Auto Trait Implementations§
impl Freeze for Policy
impl RefUnwindSafe for Policy
impl Send for Policy
impl Sync for Policy
impl Unpin for Policy
impl UnwindSafe for Policy
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