pub struct FileStore { /* private fields */ }Expand description
Filesystem-based state store implementation.
This is the default implementation that stores state in a local directory.
Implementations§
Trait Implementations§
Source§impl StateStore for FileStore
impl StateStore for FileStore
Source§fn save_state(&self, state: &ExecutionState) -> Result<()>
fn save_state(&self, state: &ExecutionState) -> Result<()>
Save execution state to storage
Source§fn load_state(&self) -> Result<Option<ExecutionState>>
fn load_state(&self) -> Result<Option<ExecutionState>>
Load execution state from storage, returns None if not found
Source§fn load_receipt(&self) -> Result<Option<Receipt>>
fn load_receipt(&self) -> Result<Option<Receipt>>
Load receipt from storage, returns None if not found
Auto Trait Implementations§
impl Freeze for FileStore
impl RefUnwindSafe for FileStore
impl Send for FileStore
impl Sync for FileStore
impl Unpin for FileStore
impl UnsafeUnpin for FileStore
impl UnwindSafe for FileStore
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