pub enum DynamicKeyRegistrationFailure {
Closed,
Invalid(RuntimeContractViolation),
NameInUse {
generation: u64,
},
CapacityExhausted {
max_entries: usize,
},
}Expand description
Why a dynamic key could not be registered.
Variants§
Closed
The parent generation has closed admission.
Invalid(RuntimeContractViolation)
The name or limit violated the budget contract.
NameInUse
The name is already held by a live or retiring key.
Reusing it would let the next generation of work run beside the generation it replaced, so retirement has to complete first.
CapacityExhausted
The tree already holds the maximum number of dynamic keys.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DynamicKeyRegistrationFailure
impl RefUnwindSafe for DynamicKeyRegistrationFailure
impl Send for DynamicKeyRegistrationFailure
impl Sync for DynamicKeyRegistrationFailure
impl Unpin for DynamicKeyRegistrationFailure
impl UnsafeUnpin for DynamicKeyRegistrationFailure
impl UnwindSafe for DynamicKeyRegistrationFailure
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