pub struct Caps(/* private fields */);Implementations§
Source§impl Caps
impl Caps
pub const NONE: Caps
pub const FS_READ: Caps
pub const FS_WRITE: Caps
pub const SHELL: Caps
pub const NETWORK: Caps
pub const ENV_READ: Caps
pub const ENV_WRITE: Caps
pub const PROCESS: Caps
pub const LLM: Caps
pub const ALL: Caps
pub const STRICT: Caps
pub fn contains(self, other: Caps) -> bool
pub fn union(self, other: Caps) -> Caps
pub fn name(self) -> &'static str
pub fn from_name(s: &str) -> Option<Self>
Trait Implementations§
impl Copy for Caps
impl Eq for Caps
impl StructuralPartialEq for Caps
Auto Trait Implementations§
impl Freeze for Caps
impl RefUnwindSafe for Caps
impl Send for Caps
impl Sync for Caps
impl Unpin for Caps
impl UnsafeUnpin for Caps
impl UnwindSafe for Caps
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.