pub struct StatusStore { /* private fields */ }Implementations§
Source§impl StatusStore
impl StatusStore
pub async fn new<P: AsRef<Path>>(db_path: P) -> Result<Self>
pub async fn create_status_entry( &self, sync_source: String, linear_issue_id: String, ) -> Result<SyncStatusEntry>
pub async fn store_status_entry(&self, entry: &SyncStatusEntry) -> Result<()>
pub async fn get_status_entry( &self, id: &str, ) -> Result<Option<SyncStatusEntry>>
pub async fn update_status( &self, id: &str, status: SyncStatus, error_message: Option<String>, ) -> Result<()>
pub async fn mark_completed( &self, id: &str, motion_task_id: String, ) -> Result<()>
pub async fn mark_failed(&self, id: &str, error: String) -> Result<()>
pub async fn list_statuses_by_source( &self, sync_source: &str, ) -> Result<Vec<SyncStatusEntry>>
pub async fn list_failed_entries(&self) -> Result<Vec<SyncStatusEntry>>
pub async fn get_source_status( &self, source_name: &str, ) -> Result<Option<SyncSourceStatus>>
pub async fn update_source_stats( &self, source_name: &str, success: bool, error: Option<String>, ) -> Result<()>
pub async fn list_all_source_stats(&self) -> Result<Vec<SyncSourceStatus>>
pub async fn cleanup_old_entries(&self, older_than_days: u64) -> Result<u64>
pub async fn flush(&self) -> Result<()>
Auto Trait Implementations§
impl !RefUnwindSafe for StatusStore
impl !UnwindSafe for StatusStore
impl Freeze for StatusStore
impl Send for StatusStore
impl Sync for StatusStore
impl Unpin for StatusStore
impl UnsafeUnpin for StatusStore
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