Enum safe_app::AppError[][src]

pub enum AppError {
    CoreError(CoreError),
    IpcError(IpcError),
    NfsError(NfsError),
    EncodeDecodeError,
    OperationForbidden,
    NoSuchContainer(String),
    InvalidFileMode,
    UnregisteredClientAccess,
    InvalidCipherOptHandle,
    InvalidEncryptPubKeyHandle,
    InvalidEncryptSecKeyHandle,
    InvalidMDataEntriesHandle,
    InvalidMDataEntryActionsHandle,
    InvalidMDataPermissionsHandle,
    InvalidSelfEncryptorHandle,
    InvalidSignPubKeyHandle,
    InvalidSignSecKeyHandle,
    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).

Tried to access a client key from an unregistered client.

Invalid CipherOpt handle.

Invalid encrypt (box_) key handle.

Invalid secret key handle.

Invalid MutableData entries handle.

Invalid MutableData entry actions handle.

Invalid MutableData permissions handle.

Invalid Self Encryptor handle.

Invalid public sign key handle.

Invalid secret sign 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]

Formats the value using the given formatter. Read more

impl Display for AppError
[src]

Formats the value using the given formatter. Read more

impl From<CoreError> for AppError
[src]

Performs the conversion.

impl From<IpcError> for AppError
[src]

Performs the conversion.

impl From<ConfigFileHandlerError> for AppError
[src]

Performs the conversion.

impl From<NfsError> for AppError
[src]

Performs the conversion.

impl From<SerialisationError> for AppError
[src]

Performs the conversion.

impl From<Utf8Error> for AppError
[src]

Performs the conversion.

impl From<StringError> for AppError
[src]

Performs the conversion.

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

Performs the conversion.

impl From<IoError> for AppError
[src]

Performs the conversion.

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

Performs the conversion.

impl From<String> for AppError
[src]

Performs the conversion.

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

Performs the conversion.

impl From<NulError> for AppError
[src]

Performs the conversion.

impl From<RecvError> for AppError
[src]

Performs the conversion.

impl From<RecvTimeoutError> for AppError
[src]

Performs the conversion.

impl ErrorCode for AppError
[src]

Return the error code corresponding to this instance.

Auto Trait Implementations

impl Send for AppError

impl !Sync for AppError