pub struct CheckpointError {
pub kind: CheckpointErrorKind,
pub message: String,
}Expand description
Structured checkpoint failure.
Fields§
§kind: CheckpointErrorKindNormalized category.
message: StringSafe failure explanation.
Implementations§
Source§impl CheckpointError
impl CheckpointError
Sourcepub fn new(kind: CheckpointErrorKind, message: impl Into<String>) -> Self
pub fn new(kind: CheckpointErrorKind, message: impl Into<String>) -> Self
Creates a checkpoint error.
Trait Implementations§
Source§impl Clone for CheckpointError
impl Clone for CheckpointError
Source§fn clone(&self) -> CheckpointError
fn clone(&self) -> CheckpointError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CheckpointError
impl Debug for CheckpointError
Source§impl Display for CheckpointError
impl Display for CheckpointError
impl Eq for CheckpointError
Source§impl Error for CheckpointError
impl Error for CheckpointError
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()
Source§impl PartialEq for CheckpointError
impl PartialEq for CheckpointError
impl StructuralPartialEq for CheckpointError
Auto Trait Implementations§
impl Freeze for CheckpointError
impl RefUnwindSafe for CheckpointError
impl Send for CheckpointError
impl Sync for CheckpointError
impl Unpin for CheckpointError
impl UnsafeUnpin for CheckpointError
impl UnwindSafe for CheckpointError
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