pub enum TaskStatus {
RequestSuccess(i32),
TaskWaiting(i32),
TaskNotFound(i32),
RateLimit(i32),
Other(i32),
}Expand description
Classification of a task-level status_code.
Variants§
RequestSuccess(i32)
The task completed successfully (20000..29999).
TaskWaiting(i32)
The task was created but is not finished yet (40601, 40602).
TaskNotFound(i32)
No task with the given id was found (40401).
RateLimit(i32)
The rate limit was exceeded (40202).
Other(i32)
Any other status code.
Trait Implementations§
Source§impl Clone for TaskStatus
impl Clone for TaskStatus
Auto Trait Implementations§
impl Freeze for TaskStatus
impl RefUnwindSafe for TaskStatus
impl Send for TaskStatus
impl Sync for TaskStatus
impl Unpin for TaskStatus
impl UnsafeUnpin for TaskStatus
impl UnwindSafe for TaskStatus
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