pub struct InMemoryJobStore { /* private fields */ }Expand description
A simple in-memory implementation of JobStore.
Implementations§
Trait Implementations§
Source§impl Default for InMemoryJobStore
impl Default for InMemoryJobStore
Source§fn default() -> InMemoryJobStore
fn default() -> InMemoryJobStore
Returns the “default value” for a type. Read more
Source§impl JobStore for InMemoryJobStore
impl JobStore for InMemoryJobStore
Source§fn save_state<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
id: &'life1 str,
state: &'life2 JobState,
) -> Pin<Box<dyn Future<Output = CronResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn save_state<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
id: &'life1 str,
state: &'life2 JobState,
) -> Pin<Box<dyn Future<Output = CronResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Save or update a job’s state.
Auto Trait Implementations§
impl !RefUnwindSafe for InMemoryJobStore
impl !UnwindSafe for InMemoryJobStore
impl Freeze for InMemoryJobStore
impl Send for InMemoryJobStore
impl Sync for InMemoryJobStore
impl Unpin for InMemoryJobStore
impl UnsafeUnpin for InMemoryJobStore
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