pub enum ContextStoreError {
AlreadyExists {
flow_run_id: FlowRunId,
node_id: NodeId,
},
GlobalAlreadyExists {
key: String,
},
SerializationFailed(Error),
DeserializationFailed {
source: Error,
},
StorageError(String),
}Expand description
Errors from ContextStore operations.
Variants§
AlreadyExists
Attempted to write a key that already has a value. This is expected during idempotent retries (Invariant 4).
GlobalAlreadyExists
Attempted to write a global key that already has a value.
SerializationFailed(Error)
The value could not be serialized to bytes for storage.
DeserializationFailed
The stored bytes could not be deserialized back to a Value.
StorageError(String)
Underlying storage I/O error.
Trait Implementations§
Source§impl Debug for ContextStoreError
impl Debug for ContextStoreError
Source§impl Display for ContextStoreError
impl Display for ContextStoreError
Source§impl Error for ContextStoreError
impl Error for ContextStoreError
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 ContextStoreError
impl !RefUnwindSafe for ContextStoreError
impl Send for ContextStoreError
impl Sync for ContextStoreError
impl Unpin for ContextStoreError
impl UnsafeUnpin for ContextStoreError
impl !UnwindSafe for ContextStoreError
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