pub struct Coded {
pub code: &'static str,
pub message: String,
}Expand description
An error with a stable, machine-readable code. The runner prints the code next to the message; the guide lists every code.
Fields§
§code: &'static strThe stable code, such as invalid_job or attempt_active.
message: StringThe human-readable message.
Trait Implementations§
Source§impl Error for Coded
impl Error for Coded
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 Forget for Coded
impl Freeze for Coded
impl Move for Coded
impl RefUnwindSafe for Coded
impl Send for Coded
impl Sync for Coded
impl Unpin for Coded
impl UnsafeUnpin for Coded
impl UnwindSafe for Coded
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