pub struct MemoryResumeStore { /* private fields */ }Expand description
In-memory checkpoint store (for tests / single-process demos; not persistent across process death).
Implementations§
Trait Implementations§
Source§impl Default for MemoryResumeStore
impl Default for MemoryResumeStore
Source§fn default() -> MemoryResumeStore
fn default() -> MemoryResumeStore
Returns the “default value” for a type. Read more
Source§impl ResumeStore for MemoryResumeStore
impl ResumeStore for MemoryResumeStore
Source§fn save_pending<'life0, 'life1, 'async_trait>(
&'life0 self,
pending: &'life1 PendingApproval,
) -> Pin<Box<dyn Future<Output = Result<(), ResumeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn save_pending<'life0, 'life1, 'async_trait>(
&'life0 self,
pending: &'life1 PendingApproval,
) -> Pin<Box<dyn Future<Output = Result<(), ResumeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Persists a pending-approval checkpoint.
Source§fn load_pending<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<PendingApproval>, ResumeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn load_pending<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<PendingApproval>, ResumeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Reads the current checkpoint; returns
None if absent.Source§fn clear_pending<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), ResumeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn clear_pending<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), ResumeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Clears the checkpoint (decision finalized / checkpoint claimed). Treats absence as success.
Auto Trait Implementations§
impl !Freeze for MemoryResumeStore
impl !RefUnwindSafe for MemoryResumeStore
impl !UnwindSafe for MemoryResumeStore
impl Send for MemoryResumeStore
impl Sync for MemoryResumeStore
impl Unpin for MemoryResumeStore
impl UnsafeUnpin for MemoryResumeStore
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