Enum bookkeeper_client::ErrorKind
source · #[non_exhaustive]pub enum ErrorKind {
Show 31 variants
BookieNotAvailable,
BookieNotEnough,
BookieUnexpectedResponse,
BookieIoError,
BookieBadVersion,
BookieReadOnly,
BookieTooManyRequests,
EntryNotExisted,
EntryInvalidData,
InvalidMetadata,
InvalidEntryId,
InvalidLedgerId,
InvalidServiceUri,
LedgerConcurrentClose,
LedgerFenced,
LedgerClosed,
LedgerClosing,
LedgerExisted,
LedgerNotExisted,
LedgerForceFailed,
LedgerIdOverflow,
UnauthorizedAccess,
UnexpectedError,
Timeout,
ReadExceedLastAddConfirmed,
MetaClientError,
MetaVersionMismatch,
MetaInvalidData,
MetaUnexpectedResponse,
MetaConcurrentOperation,
MetaClusterUninitialized,
}Expand description
ErrorKind categorizes possible errors.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BookieNotAvailable
BookieNotEnough
BookieUnexpectedResponse
BookieIoError
BookieBadVersion
BookieReadOnly
BookieTooManyRequests
EntryNotExisted
EntryInvalidData
InvalidMetadata
InvalidEntryId
InvalidLedgerId
InvalidServiceUri
LedgerConcurrentClose
LedgerFenced
LedgerClosed
LedgerClosing
LedgerExisted
LedgerNotExisted
LedgerForceFailed
LedgerIdOverflow
UnexpectedError
Timeout
ReadExceedLastAddConfirmed
MetaClientError
MetaVersionMismatch
MetaInvalidData
MetaUnexpectedResponse
MetaConcurrentOperation
MetaClusterUninitialized
Trait Implementations§
source§impl Error for ErrorKind
impl Error for ErrorKind
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 PartialEq<ErrorKind> for ErrorKind
impl PartialEq<ErrorKind> for ErrorKind
impl Copy for ErrorKind
impl Eq for ErrorKind
impl StructuralEq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnwindSafe for ErrorKind
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
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::Requestsource§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere T: Display,
source§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read moresource§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere T: Display,
source§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more