pub struct StoreError { /* private fields */ }Expand description
A key store or state store failed. The message names what, never the key.
Implementations§
Source§impl StoreError
impl StoreError
Sourcepub fn new(message: impl Into<String>) -> StoreError
pub fn new(message: impl Into<String>) -> StoreError
A failure described by message.
Sourcepub fn with_source(
message: impl Into<String>,
source: impl Error + Send + Sync + 'static,
) -> StoreError
pub fn with_source( message: impl Into<String>, source: impl Error + Send + Sync + 'static, ) -> StoreError
A failure described by message, caused by source.
Trait Implementations§
Source§impl Clone for StoreError
impl Clone for StoreError
Source§impl Debug for StoreError
impl Debug for StoreError
Source§impl Display for StoreError
impl Display for StoreError
Source§impl Error for StoreError
impl Error for StoreError
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 StoreError
impl !UnwindSafe for StoreError
impl Freeze for StoreError
impl Send for StoreError
impl Sync for StoreError
impl Unpin for StoreError
impl UnsafeUnpin for StoreError
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