pub enum StoreError {
Show 17 variants
NotFound {
resource: Resource,
name: String,
},
Io(Error),
Authority(Cow<'static, str>),
Epoch(Error),
Sqlite(Error),
Raft(Error),
Json(Error),
Busy(Cow<'static, str>),
QuotaExceeded(Cow<'static, str>),
Conflict(Cow<'static, str>),
Denied(Cow<'static, str>),
Invalid(Cow<'static, str>),
Model(Error),
Host(Error),
Corrupt(Cow<'static, str>),
NotLeader,
Egress(Error),
}Variants§
NotFound
Io(Error)
Authority(Cow<'static, str>)
Epoch(Error)
Sqlite(Error)
Raft(Error)
Json(Error)
Busy(Cow<'static, str>)
QuotaExceeded(Cow<'static, str>)
Conflict(Cow<'static, str>)
Denied(Cow<'static, str>)
Invalid(Cow<'static, str>)
Model(Error)
Host(Error)
Corrupt(Cow<'static, str>)
NotLeader
Egress(Error)
Implementations§
Source§impl StoreError
impl StoreError
pub fn into_io(self) -> Error
pub fn not_found(resource: Resource, name: impl Into<String>) -> Self
pub fn invalid(message: impl Into<Cow<'static, str>>) -> Self
pub fn conflict(message: impl Into<Cow<'static, str>>) -> Self
pub fn busy(message: impl Into<Cow<'static, str>>) -> Self
pub fn quota_exceeded(message: impl Into<Cow<'static, str>>) -> Self
pub fn denied(message: impl Into<Cow<'static, str>>) -> Self
pub fn corrupt(message: impl Into<Cow<'static, str>>) -> Self
pub fn is_infrastructure(&self) -> bool
pub fn category(&self) -> Category
Trait Implementations§
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<Error> for StoreError
impl From<Error> for StoreError
Source§impl From<Error> for StoreError
impl From<Error> for StoreError
Source§impl From<Error> for StoreError
impl From<Error> for StoreError
Source§impl From<Error> for StoreError
impl From<Error> for StoreError
Source§impl From<Error> for StoreError
impl From<Error> for StoreError
Source§impl From<Error> for StoreError
impl From<Error> for StoreError
Source§impl From<Error> for StoreError
impl From<Error> for StoreError
Auto Trait Implementations§
impl !RefUnwindSafe for StoreError
impl !UnwindSafe for StoreError
impl Forget for StoreError
impl Freeze for StoreErrorwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const () is !null: Freeze,
PhantomData<ErrorData<CustomOwner>>: Freeze,
&'static str: Freeze,
String: Freeze,
*const dyn Error + Sync + Send is !null: Freeze,
PhantomData<dyn Error + Sync + Send>: Freeze,
*const ChangeMembershipError<u64> is !null: Freeze,
PhantomData<ChangeMembershipError<u64>>: Freeze,
*const InitializeError<u64, BasicNode> is !null: Freeze,
PhantomData<InitializeError<u64, BasicNode>>: Freeze,
*const Fatal<u64> is !null: Freeze,
PhantomData<Fatal<u64>>: Freeze,
*const ConfigError is !null: Freeze,
PhantomData<ConfigError>: Freeze,
*const StorageError<u64> is !null: Freeze,
PhantomData<StorageError<u64>>: Freeze,
*const ErrorImpl is !null: Freeze,
PhantomData<ErrorImpl>: Freeze,
*const Error is !null: Freeze,
PhantomData<Error>: Freeze,
*const ArcInner<ErrorInner> is !null: Freeze,
PhantomData<ArcInner<ErrorInner>>: Freeze,
*const Error is !null: Freeze,
PhantomData<Error>: Freeze,
impl Move for StoreError
impl Send for StoreErrorwhere
RawVecInner: Send,
Repr: Send,
&'static str: Send,
String: Send,
BoxRaw<dyn Error + Sync + Send>: Send,
BoxRaw<ChangeMembershipError<u64>>: Send,
BoxRaw<InitializeError<u64, BasicNode>>: Send,
BoxRaw<Fatal<u64>>: Send,
BoxRaw<ConfigError>: Send,
BoxRaw<StorageError<u64>>: Send,
BoxRaw<ErrorImpl>: Send,
BoxRaw<Error>: Send,
Arc<ErrorInner>: Send,
BoxRaw<Error>: Send,
impl Sync for StoreErrorwhere
RawVecInner: Sync,
Repr: Sync,
String: Sync,
BoxRaw<dyn Error + Sync + Send>: Sync,
BoxRaw<ChangeMembershipError<u64>>: Sync,
BoxRaw<InitializeError<u64, BasicNode>>: Sync,
BoxRaw<Fatal<u64>>: Sync,
BoxRaw<ConfigError>: Sync,
BoxRaw<StorageError<u64>>: Sync,
BoxRaw<ErrorImpl>: Sync,
BoxRaw<Error>: Sync,
Arc<ErrorInner>: Sync,
BoxRaw<Error>: Sync,
impl Unpin for StoreErrorwhere
*const u8 is !null: Unpin,
*const () is !null: Unpin,
&'static SimpleMessage: Unpin,
*const Custom is !null: Unpin,
&'static str: Unpin,
String: Unpin,
Box<dyn Error + Sync + Send>: Unpin,
Box<ChangeMembershipError<u64>>: Unpin,
Box<InitializeError<u64, BasicNode>>: Unpin,
Box<Fatal<u64>>: Unpin,
Box<ConfigError>: Unpin,
Box<StorageError<u64>>: Unpin,
Box<ErrorImpl>: Unpin,
Box<Error>: Unpin,
Arc<ErrorInner>: Unpin,
Box<Error>: Unpin,
impl UnsafeUnpin for StoreErrorwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const () is !null: UnsafeUnpin,
PhantomData<ErrorData<CustomOwner>>: UnsafeUnpin,
&'static str: UnsafeUnpin,
String: UnsafeUnpin,
*const dyn Error + Sync + Send is !null: UnsafeUnpin,
PhantomData<dyn Error + Sync + Send>: UnsafeUnpin,
*const ChangeMembershipError<u64> is !null: UnsafeUnpin,
PhantomData<ChangeMembershipError<u64>>: UnsafeUnpin,
*const InitializeError<u64, BasicNode> is !null: UnsafeUnpin,
PhantomData<InitializeError<u64, BasicNode>>: UnsafeUnpin,
*const Fatal<u64> is !null: UnsafeUnpin,
PhantomData<Fatal<u64>>: UnsafeUnpin,
*const ConfigError is !null: UnsafeUnpin,
PhantomData<ConfigError>: UnsafeUnpin,
*const StorageError<u64> is !null: UnsafeUnpin,
PhantomData<StorageError<u64>>: UnsafeUnpin,
*const ErrorImpl is !null: UnsafeUnpin,
PhantomData<ErrorImpl>: UnsafeUnpin,
*const Error is !null: UnsafeUnpin,
PhantomData<Error>: UnsafeUnpin,
*const ArcInner<ErrorInner> is !null: UnsafeUnpin,
PhantomData<ArcInner<ErrorInner>>: UnsafeUnpin,
*const Error is !null: UnsafeUnpin,
PhantomData<Error>: UnsafeUnpin,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more