#[non_exhaustive]pub enum Timer {
CallTimeout,
Heartbeat,
BootRetry,
TransactionRetry,
DrainDeadline,
}Expand description
The timers the engine asks the driver to run.
The driver only has to keep one deadline per variant; the engine re-arms and clears them
explicitly, and a spurious Input::Timeout is always harmless.
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.
CallTimeout
The outstanding CALL must be answered before this deadline.
Heartbeat
Time to send a Heartbeat.
BootRetry
Time to re-send BootNotification (B02.FR.04 / FR.07 / FR.08).
TransactionRetry
Time to retry the transaction message at the head of the queue.
DrainDeadline
A graceful shutdown must complete by this deadline.
Trait Implementations§
impl Copy for Timer
impl Eq for Timer
Source§impl Ord for Timer
impl Ord for Timer
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Timer
impl PartialOrd for Timer
impl StructuralPartialEq for Timer
Auto Trait Implementations§
impl Forget for Timer
impl Freeze for Timer
impl RefUnwindSafe for Timer
impl Send for Timer
impl Sync for Timer
impl Unpin for Timer
impl UnsafeUnpin for Timer
impl UnwindSafe for Timer
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