pub enum AuthorityStoreError {
Cancelled,
Missing,
InvalidReplayLimit,
ReplayRecordTooLarge {
observed: u64,
maximum: u64,
},
PayloadTooLarge {
observed: u64,
maximum: u64,
},
EpochExhausted,
SequenceExhausted,
Corrupt(String),
Io(Error),
Indeterminate {
operation: &'static str,
source: Error,
},
Rejected(String),
Work(WorkError),
}Expand description
Typed authority storage failures.
Variants§
Cancelled
Operation was cancelled before durable authority work began.
Missing
The authority does not exist.
InvalidReplayLimit
A configured replay bound is invalid.
ReplayRecordTooLarge
One authority record cannot fit into the requested replay page.
PayloadTooLarge
One submitted authority payload exceeds the backend admission bound.
EpochExhausted
Epoch arithmetic cannot represent another fence.
SequenceExhausted
Sequence arithmetic cannot represent another authority fact.
Corrupt(String)
Persistent state is corrupt and cannot be safely interpreted.
Io(Error)
Persistent I/O failed.
Indeterminate
Durable state may have changed, so the caller must reopen and resolve by identity.
Fields
Rejected(String)
Backend rejected an operation for a stable implementation-specific reason.
Work(WorkError)
Backend work could not be admitted within the caller’s hard budget.
Trait Implementations§
Source§impl Debug for AuthorityStoreError
impl Debug for AuthorityStoreError
Source§impl Display for AuthorityStoreError
impl Display for AuthorityStoreError
Source§impl Error for AuthorityStoreError
impl Error for AuthorityStoreError
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<AuthorityStoreError> for FsError
impl From<AuthorityStoreError> for FsError
Source§fn from(source: AuthorityStoreError) -> Self
fn from(source: AuthorityStoreError) -> Self
Converts to this type from the input type.
Source§impl From<AuthorityStoreError> for PublicationError
impl From<AuthorityStoreError> for PublicationError
Source§fn from(source: AuthorityStoreError) -> Self
fn from(source: AuthorityStoreError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for AuthorityStoreError
impl From<Error> for AuthorityStoreError
Auto Trait Implementations§
impl !RefUnwindSafe for AuthorityStoreError
impl !UnwindSafe for AuthorityStoreError
impl Freeze for AuthorityStoreError
impl Send for AuthorityStoreError
impl Sync for AuthorityStoreError
impl Unpin for AuthorityStoreError
impl UnsafeUnpin for AuthorityStoreError
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
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request