pub enum ErrorKind {
Message(String),
Io(Error),
DataIntegrity(Box<Error>),
InvalidTreeName,
KeyTooLarge,
ValueTooLarge,
KeysNotOrdered,
Internal(InternalError),
TreeCompacted,
Vault(Box<dyn SendSyncError>),
TransactionPushedOutOfOrder,
}
Expand description
An error from Nebari.
Variants
Message(String)
An error has occurred. The string contains human-readable error message. This error is only used in situations where a user is not expected to be able to recover automatically from the error.
Io(Error)
An error occurred while performing IO.
DataIntegrity(Box<Error>)
An unrecoverable data integrity error was encountered.
InvalidTreeName
An invalid tree name was provided.
Valid characters are:
'a'..='z'
'A'..='Z'
'0'..='9'
'-'
(Hyphen)'_'
(Underscore)'.'
(Period)
KeyTooLarge
A key was too large.
ValueTooLarge
A value was too large.
KeysNotOrdered
A multi-key operation did not have its keys ordered.
Internal(InternalError)
An internal error occurred. These errors are not intended to be recoverable and represent some internal error condition.
TreeCompacted
The underlying tree file has been compacted, and the request cannot be completed. Reopen the file and try again.
Vault(Box<dyn SendSyncError>)
An error ocurred in the vault.
TransactionPushedOutOfOrder
An transaction was pushed to the log out of order.
Trait Implementations
sourceimpl Error for ErrorKind
impl Error for ErrorKind
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more