pub enum FinalizerError {
Unavailable(String),
MalformedArgument(String),
IncompatibleArgument(String),
Denied(Denial),
BudgetExhausted(Error),
Failed(Error),
}Variants§
The package is not among those linked, exports no valid finalizer, or
was built by an engine that does not export its argument check.
MalformedArgument(String)
The stored value is not JSON.
IncompatibleArgument(String)
The stored value does not fit the finalizer’s parameter type, as
value as T would reject it.
Denied(Denial)
A runtime denial escaped the cleanup.
BudgetExhausted(Error)
Fuel, the deadline or memory ran out.
Failed(Error)
An initializer or the finalizer threw or trapped.
Trait Implementations§
Source§impl Debug for FinalizerError
impl Debug for FinalizerError
Source§impl Display for FinalizerError
impl Display for FinalizerError
Source§impl Error for FinalizerError
impl Error for FinalizerError
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()
Auto Trait Implementations§
impl Freeze for FinalizerError
impl RefUnwindSafe for FinalizerError
impl Send for FinalizerError
impl Sync for FinalizerError
impl Unpin for FinalizerError
impl UnsafeUnpin for FinalizerError
impl UnwindSafe for FinalizerError
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