pub struct NoopDeadlineStore;Expand description
A DeadlineStore that never persists anything.
register succeeds silently; due_now always returns an empty list.
Use this as the default when deadline tracking is not needed.
§⚠️ Silent deadline loss
NoopDeadlineStore discards every deadline registration silently. No
scheduler timeout will ever fire. Missed deadlines are a compliance
violation under BNetzA monitoring. Do not use in production.
This type is available in all build configurations so it can serve as a
default type parameter in EngineBuilder. However, EngineBuilder::new
(which wires this as the default) is only available with the testing
feature or in cfg(test). Production binaries must call
EngineBuilder::with_stores instead.
Trait Implementations§
Source§impl Clone for NoopDeadlineStore
impl Clone for NoopDeadlineStore
Source§fn clone(&self) -> NoopDeadlineStore
fn clone(&self) -> NoopDeadlineStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NoopDeadlineStore
Source§impl Debug for NoopDeadlineStore
impl Debug for NoopDeadlineStore
Source§impl Default for NoopDeadlineStore
impl Default for NoopDeadlineStore
Source§fn default() -> NoopDeadlineStore
fn default() -> NoopDeadlineStore
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NoopDeadlineStore
impl RefUnwindSafe for NoopDeadlineStore
impl Send for NoopDeadlineStore
impl Sync for NoopDeadlineStore
impl Unpin for NoopDeadlineStore
impl UnsafeUnpin for NoopDeadlineStore
impl UnwindSafe for NoopDeadlineStore
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