pub struct FileStore { /* private fields */ }Implementations§
Source§impl FileStore
impl FileStore
pub fn new<P: AsRef<Path>>(path: P) -> Result<Self>
pub fn save_task(&self, task: &RetryableTask) -> Result<()>
pub fn read_tasks(&self) -> Result<Vec<RetryableTask>>
pub fn get_latest_task(&self, task_id: &str) -> Result<Option<RetryableTask>>
pub fn delete_task(&self, task_id: &str) -> Result<()>
pub fn compact_log(&self) -> Result<()>
Trait Implementations§
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