pub enum TaskError {
NotFound(u64),
InvalidState {
number: u64,
reason: &'static str,
},
Forbidden {
number: u64,
reason: &'static str,
},
Invalid(String),
Store(String),
}Expand description
Why a write was refused. reason codes follow Hive’s (task_claimed,
task_not_open, task_closed, not_submitted, self_verify, …).
Variants§
NotFound(u64)
InvalidState
The task’s state does not allow the write.
Forbidden
The actor may not make the write.
Invalid(String)
The request is malformed (text rules, missing fields).
Store(String)
The store could not be read, locked or written.
Implementations§
Trait Implementations§
impl Eq for TaskError
Source§impl Error for TaskError
impl Error for TaskError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl StructuralPartialEq for TaskError
Auto Trait Implementations§
impl Forget for TaskError
impl Freeze for TaskError
impl Move for TaskError
impl RefUnwindSafe for TaskError
impl Send for TaskError
impl Sync for TaskError
impl Unpin for TaskError
impl UnsafeUnpin for TaskError
impl UnwindSafe for TaskError
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