pub enum CronStreamError<Tz: TimeZone> {
OutOfRangeError {
inner: OutOfRangeError,
tick: DateTime<Tz>,
},
}Expand description
Represents an error emitted by CronStream polling
Variants§
OutOfRangeError
The cron stream might not always be polled consistently, such as when the worker is blocked. If polling is delayed, some ticks may be skipped. When this occurs, an out-of-range error is triggered because the missed tick is now in the past.
Trait Implementations§
Source§impl<Tz: TimeZone> Debug for CronStreamError<Tz>
impl<Tz: TimeZone> Debug for CronStreamError<Tz>
Source§impl<Tz: TimeZone> Display for CronStreamError<Tz>
impl<Tz: TimeZone> Display for CronStreamError<Tz>
Source§impl<Tz: TimeZone> Error for CronStreamError<Tz>
impl<Tz: TimeZone> Error for CronStreamError<Tz>
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<Tz> Freeze for CronStreamError<Tz>
impl<Tz> RefUnwindSafe for CronStreamError<Tz>
impl<Tz> Send for CronStreamError<Tz>
impl<Tz> Sync for CronStreamError<Tz>
impl<Tz> Unpin for CronStreamError<Tz>
impl<Tz> UnwindSafe for CronStreamError<Tz>
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