#[non_exhaustive]pub enum CheckpointError {
InvalidRunId(String),
Read {
name: String,
source: Error,
},
Unreadable {
name: String,
source: Error,
},
Encode(Error),
Write {
name: String,
source: Error,
},
UnknownNode(String),
UnknownAgent(String),
}Expand description
Why a run’s checkpoint could not be read or written.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidRunId(String)
The run id is not 1-128 of [A-Za-z0-9_-].
Read
The store could not read the checkpoint.
Unreadable
The checkpoint is not the JSON this version writes.
Encode(Error)
The run’s state could not be turned into JSON.
Write
The store could not write the checkpoint.
UnknownNode(String)
The checkpoint names a graph node the graph does not have.
UnknownAgent(String)
The checkpoint names a swarm agent the swarm does not have.
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 Forget for CheckpointError
impl Freeze for CheckpointErrorwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const () is !null: Freeze,
PhantomData<ErrorData<CustomOwner>>: Freeze,
*const ErrorImpl is !null: Freeze,
PhantomData<ErrorImpl>: Freeze,
impl Move for CheckpointError
impl Send for CheckpointError
impl Sync for CheckpointError
impl Unpin for CheckpointError
impl UnsafeUnpin for CheckpointErrorwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const () is !null: UnsafeUnpin,
PhantomData<ErrorData<CustomOwner>>: UnsafeUnpin,
*const ErrorImpl is !null: UnsafeUnpin,
PhantomData<ErrorImpl>: UnsafeUnpin,
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