Struct PluginGrantSet
pub struct PluginGrantSet { /* private fields */ }Expand description
Immutable effective permissions for one admitted instance.
Manifest permissions are requests. This set is the host’s grant decision; today callers may grant every request, while a later authority layer can supply the request/operator-policy intersection without changing service consumers.
Implementations§
Source§impl PluginGrantSet
impl PluginGrantSet
Sourcepub fn allows(&self, permission: PluginPermission) -> bool
pub fn allows(&self, permission: PluginPermission) -> bool
Whether this instance may use permission.
Trait Implementations§
Source§impl Clone for PluginGrantSet
impl Clone for PluginGrantSet
Source§fn clone(&self) -> PluginGrantSet
fn clone(&self) -> PluginGrantSet
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PluginGrantSet
impl RefUnwindSafe for PluginGrantSet
impl Send for PluginGrantSet
impl Sync for PluginGrantSet
impl Unpin for PluginGrantSet
impl UnsafeUnpin for PluginGrantSet
impl UnwindSafe for PluginGrantSet
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