Enum vault::Error [] [src]

pub enum Error {
    CursorWrap,
    CursorOutOfBounds,
    FileTooLarge,
    EmptyChar,
    InvalidFileExtension,
    UnexpectedValue,
    UnsupportedVersion,
    UnsupportedChunkVersion,
    IoError(IoError),
    Utf8Error(FromUtf8Error),
    Utf16Error(FromUtf16Error),
    ZipError(ZipError),
    EncoderError(EncoderError),
}

This type contains the various error messages that can be returned from the library.

Variants

CursorWrapCursorOutOfBoundsFileTooLargeEmptyCharInvalidFileExtensionUnexpectedValueUnsupportedVersionUnsupportedChunkVersionIoError(IoError)Utf8Error(FromUtf8Error)Utf16Error(FromUtf16Error)ZipError(ZipError)EncoderError(EncoderError)

Trait Implementations

impl Debug for Error
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl From<IoError> for Error
[src]

fn from(err: IoError) -> Error

Performs the conversion.

impl From<FromUtf8Error> for Error
[src]

fn from(err: FromUtf8Error) -> Error

Performs the conversion.

impl From<FromUtf16Error> for Error
[src]

fn from(err: FromUtf16Error) -> Error

Performs the conversion.

impl From<ZipError> for Error
[src]

fn from(err: ZipError) -> Error

Performs the conversion.

impl From<EncoderError> for Error
[src]

fn from(err: EncoderError) -> Error

Performs the conversion.

impl StdError for Error
[src]

fn description(&self) -> &str

A short description of the error. Read more

fn cause(&self) -> Option<&StdError>

The lower-level cause of this error, if any. Read more

impl Display for Error
[src]

fn fmt(&self, fmt: &mut Formatter) -> FmtResult

Formats the value using the given formatter.