#[non_exhaustive]pub enum SchedulerError {
InvalidCron(String, String),
RuntimeUnavailable,
TaskTimedOut {
label: String,
timeout_ms: u64,
},
TaskPanicked {
label: String,
},
TaskCancelled {
label: String,
},
ScheduleExhausted {
label: String,
},
LoopFailed {
label: String,
message: String,
},
}Expand description
Strongly-typed error domain for scheduler operations.
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.
InvalidCron(String, String)
Invalid cron expression syntax.
The scheduler was started outside an active Tokio runtime.
TaskTimedOut
A task exceeded its configured execution deadline.
Fields
TaskPanicked
A task panicked. The panic is contained in its isolated Tokio task.
TaskCancelled
A task execution was unexpectedly cancelled.
ScheduleExhausted
A schedule no longer has a future execution.
LoopFailed
A scheduler loop terminated unexpectedly.
Trait Implementations§
Source§impl Clone for SchedulerError
impl Clone for SchedulerError
Source§impl Debug for SchedulerError
impl Debug for SchedulerError
Source§impl Display for SchedulerError
impl Display for SchedulerError
impl Eq for SchedulerError
Source§impl Error for SchedulerError
impl Error for SchedulerError
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<SchedulerError> for ServerError
impl From<SchedulerError> for ServerError
Source§fn from(source: SchedulerError) -> Self
fn from(source: SchedulerError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SchedulerError
impl PartialEq for SchedulerError
impl StructuralPartialEq for SchedulerError
Auto Trait Implementations§
impl Freeze for SchedulerError
impl RefUnwindSafe for SchedulerError
impl Send for SchedulerError
impl Sync for SchedulerError
impl Unpin for SchedulerError
impl UnsafeUnpin for SchedulerError
impl UnwindSafe for SchedulerError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ValidateIp for Twhere
T: ToString,
impl<T> ValidateIp for Twhere
T: ToString,
Source§fn validate_ipv4(&self) -> bool
fn validate_ipv4(&self) -> bool
Validates whether the given string is an IP V4
Source§fn validate_ipv6(&self) -> bool
fn validate_ipv6(&self) -> bool
Validates whether the given string is an IP V6
Source§fn validate_ip(&self) -> bool
fn validate_ip(&self) -> bool
Validates whether the given string is an IP