pub struct GrantPolicy {
pub max_depth: u8,
pub allow_grant_once: bool,
}Expand description
Policy configuration for capability grants.
Fields§
§max_depth: u8Maximum delegation depth allowed.
allow_grant_once: boolWhether GRANT_ONCE capabilities are allowed.
Implementations§
Source§impl GrantPolicy
impl GrantPolicy
Sourcepub const fn with_max_depth(max_depth: u8) -> Self
pub const fn with_max_depth(max_depth: u8) -> Self
Creates a grant policy with a custom depth limit.
Trait Implementations§
Source§impl Clone for GrantPolicy
impl Clone for GrantPolicy
Source§fn clone(&self) -> GrantPolicy
fn clone(&self) -> GrantPolicy
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 GrantPolicy
Source§impl Debug for GrantPolicy
impl Debug for GrantPolicy
Auto Trait Implementations§
impl Freeze for GrantPolicy
impl RefUnwindSafe for GrantPolicy
impl Send for GrantPolicy
impl Sync for GrantPolicy
impl Unpin for GrantPolicy
impl UnsafeUnpin for GrantPolicy
impl UnwindSafe for GrantPolicy
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