[][src]Enum safe_app::AppError

pub enum AppError {
    CoreError(CoreError),
    IpcError(IpcError),
    NfsError(NfsError),
    EncodeDecodeError,
    OperationForbidden,
    NoSuchContainer(String),
    InvalidFileMode,
    UnregisteredClientAccess,
    InvalidCipherOptHandle,
    InvalidEncryptPubKeyHandle,
    InvalidEncryptSecKeyHandle,
    InvalidMDataEntriesHandle,
    InvalidMDataEntryActionsHandle,
    InvalidMDataPermissionsHandle,
    InvalidSelfEncryptorHandle,
    InvalidSignPubKeyHandle,
    InvalidSignSecKeyHandle,
    InvalidPubKeyHandle,
    InvalidFileContextHandle,
    SelfEncryption(SelfEncryptionError<SelfEncryptionStorageError>),
    InvalidSelfEncryptorReadOffsets,
    IoError(IoError),
    Unexpected(String),
}

App error.

Variants

CoreError(CoreError)

Error from safe_core.

IpcError(IpcError)

IPC error.

NfsError(NfsError)

NFS error.

EncodeDecodeError

Generic encoding / decoding failure.

OperationForbidden

Forbidden operation.

NoSuchContainer(String)

Container not found.

InvalidFileMode

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

UnregisteredClientAccess

Tried to access a client key from an unregistered client.

InvalidCipherOptHandle

Invalid CipherOpt handle.

InvalidEncryptPubKeyHandle

Invalid encrypt (threshold_crypto) key handle.

InvalidEncryptSecKeyHandle

Invalid secret key handle.

InvalidMDataEntriesHandle

Invalid MutableData entries handle.

InvalidMDataEntryActionsHandle

Invalid MutableData entry actions handle.

InvalidMDataPermissionsHandle

Invalid MutableData permissions handle.

InvalidSelfEncryptorHandle

Invalid Self Encryptor handle.

InvalidSignPubKeyHandle

Invalid public sign key handle.

InvalidSignSecKeyHandle

Invalid secret sign key handle.

InvalidPubKeyHandle

Invalid public key handle.

InvalidFileContextHandle

Invalid file writer handle.

Error while self-encrypting data.

InvalidSelfEncryptorReadOffsets

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

IoError(IoError)

Input/output error.

Unexpected(String)

Unexpected error.

Trait Implementations

impl Debug for AppError[src]

impl Display for AppError[src]

impl ErrorCode for AppError[src]

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

impl From<Box<ErrorKind>> for AppError[src]

impl From<CoreError> for AppError[src]

impl From<Error> for AppError[src]

impl From<FromBytesError> for AppError[src]

impl From<IpcError> for AppError[src]

impl From<NfsError> for AppError[src]

impl From<NulError> for AppError[src]

impl From<RecvError> for AppError[src]

impl From<RecvTimeoutError> for AppError[src]

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

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

impl From<String> for AppError[src]

impl From<StringError> for AppError[src]

impl From<Utf8Error> for AppError[src]

Auto Trait Implementations

impl !RefUnwindSafe for AppError

impl Send for AppError

impl Sync for AppError

impl Unpin for AppError

impl !UnwindSafe for AppError

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DebugAny for T where
    T: Any + Debug

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> UnsafeAny for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,