pub struct KeyCandidateBudget { /* private fields */ }Expand description
Aggregate key-candidate work allowance for one cryptographic operation.
Resolver implementations must consume one unit before each key lookup or unwrap attempt. A single budget is shared across direct and recipient keys.
Implementations§
Source§impl KeyCandidateBudget
impl KeyCandidateBudget
Sourcepub fn for_operation() -> Self
pub fn for_operation() -> Self
Create the fixed implementation-wide budget for one operation.
Sourcepub fn with_limit(maximum: usize) -> Self
pub fn with_limit(maximum: usize) -> Self
Create a budget from a validated operation policy ceiling.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KeyCandidateBudget
impl RefUnwindSafe for KeyCandidateBudget
impl Send for KeyCandidateBudget
impl Sync for KeyCandidateBudget
impl Unpin for KeyCandidateBudget
impl UnsafeUnpin for KeyCandidateBudget
impl UnwindSafe for KeyCandidateBudget
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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