#[non_exhaustive]pub enum TaskStoreError {
Encode(String),
Decode(String),
Backend(String),
}Expand description
Errors returned by TaskStore implementations.
Mirrors the three-variant shape of
SessionStoreError: encode and
decode errors from (de)serializing task state, and catch-all backend errors
from the storage layer. MemoryTaskStore never returns errors; the
variants exist for external implementations.
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.
Encode(String)
Failed to encode task state (e.g. serde serialization error).
Decode(String)
Failed to decode task state (e.g. corrupt data in the backend).
Backend(String)
Backend error (e.g. connection failure, transient storage error).
Trait Implementations§
Source§impl Debug for TaskStoreError
impl Debug for TaskStoreError
Source§impl Display for TaskStoreError
impl Display for TaskStoreError
Source§impl Error for TaskStoreError
impl Error for TaskStoreError
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 Freeze for TaskStoreError
impl RefUnwindSafe for TaskStoreError
impl Send for TaskStoreError
impl Sync for TaskStoreError
impl Unpin for TaskStoreError
impl UnsafeUnpin for TaskStoreError
impl UnwindSafe for TaskStoreError
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