pub enum NodeError {
UnknownDb(String),
InvalidName(String),
UnsupportedFormat {
found: u32,
supported: u32,
},
Deposed(String),
Codec(CodecError),
TxForm(TxFormError),
SchemaForm(SchemaFormError),
Transact(TransactError),
Store(StoreError),
Log(LogError),
Lease(LeaseError),
BadRequest(String),
}Expand description
Node operation failure.
Variants§
UnknownDb(String)
Named database does not exist.
InvalidName(String)
Database name is not storable.
UnsupportedFormat
Database root uses a storage format newer than this binary.
Fields
Deposed(String)
This node no longer holds the write lease.
Codec(CodecError)
Payload failed to decode.
TxForm(TxFormError)
Transaction forms failed to convert.
SchemaForm(SchemaFormError)
Schema forms failed to convert.
Transact(TransactError)
Transaction pipeline failure.
Store(StoreError)
Store failure.
Log(LogError)
Log failure.
Lease(LeaseError)
Lease failure.
BadRequest(String)
Malformed request.
Trait Implementations§
Source§impl Error for NodeError
impl Error for NodeError
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<CodecError> for NodeError
impl From<CodecError> for NodeError
Source§fn from(source: CodecError) -> Self
fn from(source: CodecError) -> Self
Converts to this type from the input type.
Source§impl From<LeaseError> for NodeError
impl From<LeaseError> for NodeError
Source§fn from(source: LeaseError) -> Self
fn from(source: LeaseError) -> Self
Converts to this type from the input type.
Source§impl From<SchemaFormError> for NodeError
impl From<SchemaFormError> for NodeError
Source§fn from(source: SchemaFormError) -> Self
fn from(source: SchemaFormError) -> Self
Converts to this type from the input type.
Source§impl From<StoreError> for NodeError
impl From<StoreError> for NodeError
Source§fn from(source: StoreError) -> Self
fn from(source: StoreError) -> Self
Converts to this type from the input type.
Source§impl From<TransactError> for NodeError
impl From<TransactError> for NodeError
Source§fn from(source: TransactError) -> Self
fn from(source: TransactError) -> Self
Converts to this type from the input type.
Source§impl From<TxFormError> for NodeError
impl From<TxFormError> for NodeError
Source§fn from(source: TxFormError) -> Self
fn from(source: TxFormError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for NodeError
impl !UnwindSafe for NodeError
impl Freeze for NodeError
impl Send for NodeError
impl Sync for NodeError
impl Unpin for NodeError
impl UnsafeUnpin for NodeError
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<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