pub struct HostAccess {
pub env: bool,
pub files: bool,
pub exec: bool,
}Expand description
Explicit host category grants. Every profile defaults to no grants. A grant never supplies an implementation or overrides a driver’s refusal.
Fields§
§env: boolRead the process environment.
files: boolRead or write files, where the chosen driver implements the operation.
exec: boolExecute processes, where implemented. Currently refused by the drivers.
Implementations§
Source§impl HostAccess
impl HostAccess
Sourcepub const NONE: HostAccess
pub const NONE: HostAccess
No host access, including under TLC compatibility.
Trait Implementations§
Source§impl Clone for HostAccess
impl Clone for HostAccess
Source§fn clone(&self) -> HostAccess
fn clone(&self) -> HostAccess
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HostAccess
Source§impl Debug for HostAccess
impl Debug for HostAccess
Source§impl Default for HostAccess
impl Default for HostAccess
Source§fn default() -> HostAccess
fn default() -> HostAccess
Returns the “default value” for a type. Read more
impl Eq for HostAccess
Source§impl Hash for HostAccess
impl Hash for HostAccess
Source§impl PartialEq for HostAccess
impl PartialEq for HostAccess
impl StructuralPartialEq for HostAccess
Auto Trait Implementations§
impl Forget for HostAccess
impl Freeze for HostAccess
impl Move for HostAccess
impl RefUnwindSafe for HostAccess
impl Send for HostAccess
impl Sync for HostAccess
impl Unpin for HostAccess
impl UnsafeUnpin for HostAccess
impl UnwindSafe for HostAccess
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