Enum sit_core::repository::Error
[−]
[src]
pub enum Error { AlreadyExists, NotFound, UpgradeRequired(Upgrade), InvalidVersion { expected: String, got: String, }, IoError(Error), SerializationError(Error), BaseDecodeError(DecodeError), }
Variants
AlreadyExists
Item already exists
NotFound
Item not found
UpgradeRequired(Upgrade)
Upgrade required
InvalidVersion
Invalid repository version
Fields of InvalidVersion
expected: String | |
got: String |
IoError(Error)
I/O error
SerializationError(Error)
JSON (de)serialization error
BaseDecodeError(DecodeError)
Base decoding error
Trait Implementations
impl Debug for Error
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Display for Error
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Error for Error
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
[src]
The lower-level cause of this error, if any. Read more
impl From<Error> for Error
[src]
impl From<Error> for Error
[src]
impl From<DecodeError> for Error
[src]
fn from(err: DecodeError) -> Error
[src]
Performs the conversion.