Enum vertree::ErrorKind
[−]
pub enum ErrorKind { Msg(String), Io(Error), MsgPackEncodeError(Error), MsgPackDecodeError(Error), AlreadyExists(String), DoesNotExist(String), WrongType(String, NodeType), InvalidPathContent(String), CasFailed { path: String, expected: u64, actual: u64, }, BadPath(String), CannotDeleteRoot, PathMustBeAbsolute(String), }
The kind of an error.
Variants
Msg(String)
A convenient variant for String.
Io(Error)
MsgPackEncodeError(Error)
MsgPackDecodeError(Error)
AlreadyExists(String)
DoesNotExist(String)
WrongType(String, NodeType)
InvalidPathContent(String)
CasFailed
Fields of CasFailed
path: String | |
expected: u64 | |
actual: u64 |
BadPath(String)
CannotDeleteRoot
PathMustBeAbsolute(String)
Methods
impl ErrorKind
fn description(&self) -> &str
A string describing the error kind.