#[non_exhaustive]pub struct Limits {
pub entries: Option<usize>,
pub rights: Option<usize>,
pub depth: Option<usize>,
}Expand description
Bounds on work and memory. Each is Some(n) by default and None lifts it; none is a
security property.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.entries: Option<usize>The most entries one ACL may hold. Default 1 024.
rights: Option<usize>The most rights (bits) a schema may define. Default 1 024.
depth: Option<usize>The most levels a walk goes through, the item included. Default 64.
Implementations§
Source§impl Limits
impl Limits
Sourcepub const DEFAULT_ENTRIES: usize = 1_024
pub const DEFAULT_ENTRIES: usize = 1_024
The default entries bound.
Sourcepub const DEFAULT_RIGHTS: usize = 1_024
pub const DEFAULT_RIGHTS: usize = 1_024
The default rights bound.
Sourcepub const DEFAULT_DEPTH: usize = 64
pub const DEFAULT_DEPTH: usize = 64
The default depth bound.
Trait Implementations§
impl Copy for Limits
impl Eq for Limits
impl StructuralPartialEq for Limits
Auto Trait Implementations§
impl Freeze for Limits
impl RefUnwindSafe for Limits
impl Send for Limits
impl Sync for Limits
impl Unpin for Limits
impl UnsafeUnpin for Limits
impl UnwindSafe for Limits
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