pub struct StoreError { /* private fields */ }Expand description
A store failure, as the engine reports it.
It wraps the store’s error (its source), with the engine’s
own wording: the store’s Conflict speaks of signatures, which is not what a conflict
means to the engine (another receipt is already recorded for a version).
Implementations§
Source§impl StoreError
impl StoreError
Sourcepub fn store_error(&self) -> &Error
pub fn store_error(&self) -> &Error
The store’s error.
Sourcepub fn is_conflict(&self) -> bool
pub fn is_conflict(&self) -> bool
Whether the store refused a write because another receipt is recorded under the same key.
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()
Source§impl From<StoreError> for EngineError
impl From<StoreError> for EngineError
Source§fn from(e: StoreError) -> EngineError
fn from(e: StoreError) -> EngineError
A store’s refusal of a write under a suspended namespace (SPEC 9.9) is
EngineError::NamespaceSuspended; any other store failure is EngineError::Store.
Auto Trait Implementations§
impl !RefUnwindSafe for StoreError
impl !UnwindSafe for StoreError
impl Forget for StoreError
impl Freeze for StoreError
impl Move 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