pub enum SchedulerError {
Show 15 variants
JobNotFound {
job_name: String,
},
InvalidSchedule {
schedule: String,
},
JobExecutionFailed {
job_name: String,
error: String,
},
Database(Error),
Repository(RepositoryError),
Analytics(AnalyticsError),
Users(UserError),
CronScheduler(JobSchedulerError),
ConfigError {
message: String,
},
AlreadyRunning,
NotInitialized,
MissingContext(String),
Panic(String),
Io(Error),
Internal(String),
}Variants§
JobNotFound
InvalidSchedule
JobExecutionFailed
Database(Error)
Repository(RepositoryError)
Analytics(AnalyticsError)
Users(UserError)
CronScheduler(JobSchedulerError)
ConfigError
AlreadyRunning
NotInitialized
MissingContext(String)
Panic(String)
Io(Error)
Internal(String)
Implementations§
Source§impl SchedulerError
impl SchedulerError
pub fn job_not_found(job_name: impl Into<String>) -> Self
pub fn invalid_schedule(schedule: impl Into<String>) -> Self
pub fn job_execution_failed( job_name: impl Into<String>, error: impl Into<String>, ) -> Self
pub fn config_error(message: impl Into<String>) -> Self
pub fn missing_context(name: impl Into<String>) -> Self
pub fn panic(message: impl Into<String>) -> Self
Trait Implementations§
Source§impl Debug for SchedulerError
impl Debug for SchedulerError
Source§impl Display for SchedulerError
impl Display for SchedulerError
Source§impl Error for SchedulerError
impl Error for SchedulerError
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<AnalyticsError> for SchedulerError
impl From<AnalyticsError> for SchedulerError
Source§fn from(source: AnalyticsError) -> Self
fn from(source: AnalyticsError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for SchedulerError
impl From<Error> for SchedulerError
Source§impl From<Error> for SchedulerError
impl From<Error> for SchedulerError
Source§impl From<JobSchedulerError> for SchedulerError
impl From<JobSchedulerError> for SchedulerError
Source§fn from(source: JobSchedulerError) -> Self
fn from(source: JobSchedulerError) -> Self
Converts to this type from the input type.
Source§impl From<RepositoryError> for SchedulerError
impl From<RepositoryError> for SchedulerError
Source§fn from(source: RepositoryError) -> Self
fn from(source: RepositoryError) -> Self
Converts to this type from the input type.
Source§impl From<SchedulerError> for ProviderError
impl From<SchedulerError> for ProviderError
Source§fn from(err: SchedulerError) -> Self
fn from(err: SchedulerError) -> Self
Converts to this type from the input type.
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
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>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.
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