Enum safe_app::AppError [] [src]

pub enum AppError {
    CoreError(CoreError),
    IpcError(IpcError),
    NfsError(NfsError),
    EncodeDecodeError,
    OperationForbidden,
    NoSuchContainer,
    InvalidFileMode,
    InvalidCipherOptHandle,
    InvalidEncryptPubKeyHandle,
    InvalidMDataInfoHandle,
    InvalidMDataEntriesHandle,
    InvalidMDataEntryActionsHandle,
    InvalidMDataKeysHandle,
    InvalidMDataValuesHandle,
    InvalidMDataPermissionsHandle,
    InvalidMDataPermissionSetHandle,
    InvalidSelfEncryptorHandle,
    InvalidSignKeyHandle,
    InvalidEncryptSecKeyHandle,
    InvalidFileContextHandle,
    SelfEncryption(SelfEncryptionError<SelfEncryptionStorageError>),
    InvalidSelfEncryptorReadOffsets,
    IoError(IoError),
    Unexpected(String),
}

App error.

Variants

Error from safe_core.

IPC error.

NFS error.

Generic encoding / decoding failure.

Forbidden operation

Container not found

Invalid file mode (e.g. trying to write when file is opened for reading only)

Invalid CipherOpt handle

Invalid encrypt (box_) key handle

Invalid MDataInfo handle

Invalid MutableData entries handle

Invalid MutableData entry actions handle

Invalid MutableData keys handle

Invalid MutableData values handle

Invalid MutableData permissions handle

Invalid MutableData permission set handle

Invalid Self Encryptor handle

Invalid sign key handle

Invalid secret key handle

Invalid file writer handle

Error while self-encrypting data

Invalid offsets (from-position and length combination) provided for reading form SelfEncryptor. Would have probably caused an overflow.

Input/output Error

Unexpected error

Trait Implementations

impl Debug for AppError
[src]

[src]

Formats the value using the given formatter.

impl Display for AppError
[src]

[src]

Formats the value using the given formatter. Read more

impl From<CoreError> for AppError
[src]

[src]

Performs the conversion.

impl From<IpcError> for AppError
[src]

[src]

Performs the conversion.

impl From<ConfigFileHandlerError> for AppError
[src]

[src]

Performs the conversion.

impl From<NfsError> for AppError
[src]

[src]

Performs the conversion.

impl From<SerialisationError> for AppError
[src]

[src]

Performs the conversion.

impl From<Utf8Error> for AppError
[src]

[src]

Performs the conversion.

impl From<SelfEncryptionError<SelfEncryptionStorageError>> for AppError
[src]

[src]

Performs the conversion.

impl From<IoError> for AppError
[src]

[src]

Performs the conversion.

impl<'a> From<&'a str> for AppError
[src]

[src]

Performs the conversion.

impl From<String> for AppError
[src]

[src]

Performs the conversion.

impl<T: 'static> From<SendError<T>> for AppError
[src]

[src]

Performs the conversion.

impl From<NulError> for AppError
[src]

[src]

Performs the conversion.

impl From<RecvError> for AppError
[src]

[src]

Performs the conversion.

impl From<RecvTimeoutError> for AppError
[src]

[src]

Performs the conversion.

impl ErrorCode for AppError
[src]

[src]

Return the error code corresponding to this instance.