pub enum Operation {
FileReadAll(PathPattern),
FileReadMetadata(PathPattern),
NetworkOutbound(AddressPattern),
SystemInfoRead,
PlatformSpecific(Operation),
}
Expand description
An operation that this process is allowed to perform.
Variants§
FileReadAll(PathPattern)
All file-related reading operations may be performed on this file.
FileReadMetadata(PathPattern)
Metadata (for example, stat
or readlink
) of this file may be read.
NetworkOutbound(AddressPattern)
Outbound network connections to the given address may be initiated.
SystemInfoRead
System information may be read (via sysctl
on Unix).
PlatformSpecific(Operation)
Platform-specific operations.
Trait Implementations§
source§impl OperationSupport for Operation
impl OperationSupport for Operation
source§fn support(&self) -> OperationSupportLevel
fn support(&self) -> OperationSupportLevel
Returns an
OperationSupportLevel
describing how well this operation can be allowed on
this platform.Auto Trait Implementations§
impl Freeze for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnwindSafe for Operation
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)