pub struct InvalidJobState(pub String);Expand description
Sentinel error type for invalid job state transitions.
Used by callers to emit error.code = "invalid_state" instead of internal_error.
Tuple Fields§
§0: StringTrait Implementations§
Source§impl Debug for InvalidJobState
impl Debug for InvalidJobState
Source§impl Display for InvalidJobState
impl Display for InvalidJobState
Source§impl Error for InvalidJobState
impl Error for InvalidJobState
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 InvalidJobState
impl RefUnwindSafe for InvalidJobState
impl Send for InvalidJobState
impl Sync for InvalidJobState
impl Unpin for InvalidJobState
impl UnsafeUnpin for InvalidJobState
impl UnwindSafe for InvalidJobState
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