pub struct TasksHandler { /* private fields */ }
Expand description
Handler for asynchronous task operations
Tracks and manages long-running operations, providing status updates, progress monitoring, and result retrieval for asynchronous API calls.
Implementations§
Source§impl TasksHandler
impl TasksHandler
Sourcepub fn new(client: CloudClient) -> Self
pub fn new(client: CloudClient) -> Self
Create a new handler
Sourcepub async fn get_all_tasks(&self) -> Result<()>
pub async fn get_all_tasks(&self) -> Result<()>
Get tasks Gets a list of all currently running tasks for this account.
GET /tasks
Sourcepub async fn get_task_by_id(&self, task_id: String) -> Result<TaskStateUpdate>
pub async fn get_task_by_id(&self, task_id: String) -> Result<TaskStateUpdate>
Get a single task Gets details and status of a single task by the Task ID.
GET /tasks/{taskId}
Auto Trait Implementations§
impl Freeze for TasksHandler
impl !RefUnwindSafe for TasksHandler
impl Send for TasksHandler
impl Sync for TasksHandler
impl Unpin for TasksHandler
impl !UnwindSafe for TasksHandler
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