pub enum CheckpointError {
Serialize(Box<dyn Error + Send + Sync>),
Deserialize(Box<dyn Error + Send + Sync>),
NotFound {
thread_id: String,
checkpoint_id: String,
},
Storage(Box<dyn Error + Send + Sync>),
Other(String),
}Expand description
Checkpoint operation errors
Represents all possible errors that can occur during checkpoint operations.
This type is defined in juncture-core for use in the CheckpointSaver trait.
The juncture-checkpoint crate provides a compatible implementation with
additional storage-specific errors.
Variants§
Serialize(Box<dyn Error + Send + Sync>)
Serialization failed
Deserialize(Box<dyn Error + Send + Sync>)
Deserialization failed
NotFound
Checkpoint not found
Storage(Box<dyn Error + Send + Sync>)
Storage operation error
Other(String)
Other checkpoint errors
Trait Implementations§
Source§impl Debug for CheckpointError
impl Debug for CheckpointError
Source§impl Display for CheckpointError
impl Display for CheckpointError
Source§impl Error for CheckpointError
impl Error for CheckpointError
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 !RefUnwindSafe for CheckpointError
impl !UnwindSafe for CheckpointError
impl Freeze for CheckpointError
impl Send for CheckpointError
impl Sync for CheckpointError
impl Unpin for CheckpointError
impl UnsafeUnpin 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