pub struct Tracker { /* private fields */ }
Implementations§
Source§impl Tracker
impl Tracker
pub fn start_select_tracker_background(api_base: Arc<RwLock<&'static str>>)
Source§impl Tracker
impl Tracker
pub async fn fetch_project(&self) -> Result<Project, Box<dyn Error>>
pub async fn get_project(&mut self) -> &Project
Source§impl Tracker
impl Tracker
pub async fn claim_task(&mut self, with_delay: bool) -> Option<Task>
pub async fn update_task(&self, task_id: Id, to_status: Status) -> String
pub async fn insert_many(&self, items: Vec<Item>) -> String
pub async fn insert_item( &self, task: &Task, item_status: String, payload: String, ) -> String
Auto Trait Implementations§
impl Freeze for Tracker
impl !RefUnwindSafe for Tracker
impl Send for Tracker
impl Sync for Tracker
impl Unpin for Tracker
impl !UnwindSafe for Tracker
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