#[non_exhaustive]pub enum TimerError {
NotInitialized,
RuntimeBusy,
Register(RegisterError),
Schedule(ScheduleError),
RegistrationExpired,
ControlFailure(TimerControlFailure),
OwnershipInvariant,
ReconciliationConflict,
}Expand description
Failure from the canister-local timer runtime API.
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.
NotInitialized
The lifecycle owner has not initialized the volatile runtime.
RuntimeBusy
A nested internal borrow indicates unsupported re-entrancy.
Register(RegisterError)
Claiming one canonical timer identity failed.
Schedule(ScheduleError)
Cadence or deadline validation failed.
RegistrationExpired
The logical registration was removed or superseded.
ControlFailure(TimerControlFailure)
Pure checked control reached a terminal failure after effects were applied.
OwnershipInvariant
Canonical callback or provider-handle ownership was internally inconsistent.
ReconciliationConflict
A retained lifecycle claim no longer matches its canonical declaration.
Trait Implementations§
Source§impl Debug for TimerError
impl Debug for TimerError
Source§impl Display for TimerError
impl Display for TimerError
Source§impl Error for TimerError
impl Error for TimerError
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<RegisterError> for TimerError
impl From<RegisterError> for TimerError
Source§fn from(source: RegisterError) -> Self
fn from(source: RegisterError) -> Self
Converts to this type from the input type.
Source§impl From<ScheduleError> for TimerError
impl From<ScheduleError> for TimerError
Source§fn from(source: ScheduleError) -> Self
fn from(source: ScheduleError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TimerError
impl RefUnwindSafe for TimerError
impl Send for TimerError
impl Sync for TimerError
impl Unpin for TimerError
impl UnsafeUnpin for TimerError
impl UnwindSafe for TimerError
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