pub enum TriggerError {
UnknownKeyword {
found: String,
},
BadDuration {
found: String,
},
TooFrequent {
found: String,
minimum: u64,
},
BadCron {
found: String,
reason: String,
},
SubMinuteCron {
found: String,
fields: usize,
},
AmbiguousSchedule,
EmptySchedule,
}Expand description
Why a trigger could not be understood.
Variants§
UnknownKeyword
The trigger keyword was not one Layover knows.
BadDuration
An every value was not a duration.
TooFrequent
An every value was shorter than the floor.
BadCron
A cron expression did not parse.
SubMinuteCron
A cron expression carried a seconds field.
AmbiguousSchedule
Both every and cron were given.
EmptySchedule
A trigger table was empty.
Trait Implementations§
Source§impl Clone for TriggerError
impl Clone for TriggerError
Source§impl Debug for TriggerError
impl Debug for TriggerError
Source§impl Display for TriggerError
impl Display for TriggerError
impl Eq for TriggerError
Source§impl Error for TriggerError
impl Error for TriggerError
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 PartialEq for TriggerError
impl PartialEq for TriggerError
impl StructuralPartialEq for TriggerError
Auto Trait Implementations§
impl Freeze for TriggerError
impl RefUnwindSafe for TriggerError
impl Send for TriggerError
impl Sync for TriggerError
impl Unpin for TriggerError
impl UnsafeUnpin for TriggerError
impl UnwindSafe for TriggerError
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