pub enum LocalFailure {
Database,
DiskFull,
DiskDenied,
DiskOther,
KeyCustody,
Crypto,
Operation,
Shutdown,
Bug,
}Expand description
A local invariant or resource failure; immediate calls retain the native cause.
Variants§
Database
Database state or persistence failed.
DiskFull
Local file access failed because the disk is full or its quota is spent.
DiskDenied
Local file access failed because the operating system refused this process the file or folder, or the volume is read-only.
DiskOther
Local file access failed for a reason that is neither: the file is gone, the device failed, or the cause names no operating system error.
KeyCustody
Key custody failed.
Crypto
Cryptographic work failed.
Operation
Operation state failed.
Shutdown
The work’s runtime is shutting down and dropped it: the process is ending, and the next one runs the work again (E15).
Bug
Coven’s own code broke its rule or panicked: a bug. The work retries under backoff, as a database failure does, and fails again until the bug is fixed (E15).
Trait Implementations§
Source§impl Clone for LocalFailure
impl Clone for LocalFailure
Source§fn clone(&self) -> LocalFailure
fn clone(&self) -> LocalFailure
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LocalFailure
impl Debug for LocalFailure
Source§impl<'de> Deserialize<'de> for LocalFailure
impl<'de> Deserialize<'de> for LocalFailure
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LocalFailure, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LocalFailure, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for LocalFailure
impl PartialEq for LocalFailure
Source§impl Serialize for LocalFailure
impl Serialize for LocalFailure
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl Copy for LocalFailure
impl Eq for LocalFailure
impl StructuralPartialEq for LocalFailure
Auto Trait Implementations§
impl Freeze for LocalFailure
impl RefUnwindSafe for LocalFailure
impl Send for LocalFailure
impl Sync for LocalFailure
impl Unpin for LocalFailure
impl UnsafeUnpin for LocalFailure
impl UnwindSafe for LocalFailure
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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