pub struct JobNotFound(pub String);Expand description
Sentinel error type to distinguish “job not found” from other I/O errors.
Used by callers to emit error.code = "job_not_found" instead of internal_error.
Tuple Fields§
§0: StringTrait Implementations§
Source§impl Debug for JobNotFound
impl Debug for JobNotFound
Source§impl Display for JobNotFound
impl Display for JobNotFound
Source§impl Error for JobNotFound
impl Error for JobNotFound
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()
Auto Trait Implementations§
impl Freeze for JobNotFound
impl RefUnwindSafe for JobNotFound
impl Send for JobNotFound
impl Sync for JobNotFound
impl Unpin for JobNotFound
impl UnsafeUnpin for JobNotFound
impl UnwindSafe for JobNotFound
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