[][src]Enum tinkv::TinkvError

pub enum TinkvError {
    ParseInt(ParseIntError),
    ParseRespValue,
    Io(Error),
    Glob(GlobError),
    Pattern(PatternError),
    Codec(Box<ErrorKind>),
    DataEntryCorrupted {
        file_id: u64,
        key: Vec<u8>,
        offset: u64,
    },
    KeyNotFound(Vec<u8>),
    FileNotWriteable(PathBuf),
    KeyIsTooLarge,
    ValueIsTooLarge,
    Custom(String),
    Other(Error),
    RespCommon {
        name: String,
        msg: String,
    },
    RespWrongNumOfArgs(String),
}

The kind of error that could be produced during tinkv operation.

Variants

ParseInt(ParseIntError)
ParseRespValue
Io(Error)
Glob(GlobError)
Pattern(PatternError)
Codec(Box<ErrorKind>)
DataEntryCorrupted

Custom error definitions.

Fields of DataEntryCorrupted

file_id: u64key: Vec<u8>offset: u64
KeyNotFound(Vec<u8>)
FileNotWriteable(PathBuf)
KeyIsTooLarge
ValueIsTooLarge
Custom(String)
Other(Error)
RespCommon

Fields of RespCommon

name: Stringmsg: String
RespWrongNumOfArgs(String)

Implementations

impl TinkvError[src]

pub fn new_resp_common(name: &str, msg: &str) -> Self[src]

pub fn resp_wrong_num_of_args(name: &str) -> Self[src]

Trait Implementations

impl Debug for TinkvError[src]

impl Display for TinkvError[src]

impl Error for TinkvError[src]

impl From<Box<ErrorKind>> for TinkvError[src]

impl From<Error> for TinkvError[src]

impl From<Error> for TinkvError[src]

impl From<GlobError> for TinkvError[src]

impl From<ParseIntError> for TinkvError[src]

impl From<PatternError> for TinkvError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.