pub enum DsErrorKind {
Show 28 variants
InputOutput {
path: Option<PathBuf>,
kind: String,
errno: Option<i32>,
},
Storage {
op: String,
details: String,
},
PageNotFound {
id: u64,
},
PageFull,
PageSizeMismatch {
expected: usize,
actual: usize,
},
ChecksumMismatch {
id: u64,
},
InvalidPageType {
page_type: u8,
},
Corrupted {
reason: String,
},
Serialization {
format: String,
details: String,
},
Parse {
target: String,
details: String,
},
Type {
expected: String,
actual: String,
},
TypeConversion {
from: String,
to: String,
},
Query {
sql: String,
details: String,
},
Execution {
op: String,
details: String,
},
Schema {
table: Option<String>,
column: Option<String>,
details: String,
},
TableNotFound {
name: String,
},
Consensus {
op: String,
details: String,
},
Network {
addr: Option<String>,
details: String,
},
Protocol {
details: String,
},
Internal {
details: String,
},
Config {
key: String,
details: String,
},
Http {
code: u16,
url: String,
method: String,
},
Join {
details: String,
},
Cache {
op: String,
details: String,
},
Sync {
details: String,
},
Permission {
action: String,
resource: String,
},
Tenant {
id: String,
details: String,
},
Quota {
resource: String,
limit: u64,
usage: u64,
},
}Expand description
Detailed error categories.
Variants§
InputOutput
Storage
PageNotFound
PageFull
PageSizeMismatch
ChecksumMismatch
InvalidPageType
Corrupted
Serialization
Parse
Type
TypeConversion
Query
Execution
Schema
TableNotFound
Consensus
Network
Protocol
Internal
Config
Http
Join
Cache
Sync
Permission
Tenant
Quota
Implementations§
Trait Implementations§
Source§impl Clone for DsErrorKind
impl Clone for DsErrorKind
Source§fn clone(&self) -> DsErrorKind
fn clone(&self) -> DsErrorKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DsErrorKind
impl Debug for DsErrorKind
Source§impl<'de> Deserialize<'de> for DsErrorKind
impl<'de> Deserialize<'de> for DsErrorKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for DsErrorKind
impl Display for DsErrorKind
Source§impl From<DsErrorKind> for DsError
impl From<DsErrorKind> for DsError
Source§fn from(kind: DsErrorKind) -> Self
fn from(kind: DsErrorKind) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DsErrorKind
impl PartialEq for DsErrorKind
Source§impl Serialize for DsErrorKind
impl Serialize for DsErrorKind
impl StructuralPartialEq for DsErrorKind
Auto Trait Implementations§
impl Freeze for DsErrorKind
impl RefUnwindSafe for DsErrorKind
impl Send for DsErrorKind
impl Sync for DsErrorKind
impl Unpin for DsErrorKind
impl UnsafeUnpin for DsErrorKind
impl UnwindSafe for DsErrorKind
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