#[non_exhaustive]pub enum ShutdownFinalizerRegistryError {
DuplicateIdentifier,
DuplicateOrder,
ZeroCap,
}Expand description
Validation failure for the frozen runtime-owned finalizer registry.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
DuplicateIdentifier
Two runtime-owned finalizers used the same fixed identifier.
DuplicateOrder
Two runtime-owned finalizers used the same execution order.
ZeroCap
A finalizer cap must be greater than zero.
Trait Implementations§
Source§impl Clone for ShutdownFinalizerRegistryError
impl Clone for ShutdownFinalizerRegistryError
Source§fn clone(&self) -> ShutdownFinalizerRegistryError
fn clone(&self) -> ShutdownFinalizerRegistryError
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 ShutdownFinalizerRegistryError
impl Eq for ShutdownFinalizerRegistryError
Source§impl Error for ShutdownFinalizerRegistryError
impl Error for ShutdownFinalizerRegistryError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<ShutdownFinalizerRegistryError> for RuntimeError
impl From<ShutdownFinalizerRegistryError> for RuntimeError
Source§fn from(source: ShutdownFinalizerRegistryError) -> Self
fn from(source: ShutdownFinalizerRegistryError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for ShutdownFinalizerRegistryError
Auto Trait Implementations§
impl Freeze for ShutdownFinalizerRegistryError
impl RefUnwindSafe for ShutdownFinalizerRegistryError
impl Send for ShutdownFinalizerRegistryError
impl Sync for ShutdownFinalizerRegistryError
impl Unpin for ShutdownFinalizerRegistryError
impl UnsafeUnpin for ShutdownFinalizerRegistryError
impl UnwindSafe for ShutdownFinalizerRegistryError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.