Enum safe_app::AppError
[−]
[src]
pub enum AppError { CoreError(CoreError), IpcError(IpcError), NfsError(NfsError), EncodeDecodeError, OperationForbidden, NoSuchContainer, InvalidFileMode, InvalidCipherOptHandle, InvalidEncryptPubKeyHandle, InvalidEncryptSecKeyHandle, InvalidMDataEntriesHandle, InvalidMDataEntryActionsHandle, InvalidMDataPermissionsHandle, InvalidSelfEncryptorHandle, InvalidSignPubKeyHandle, InvalidSignSecKeyHandle, 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
Container not found
InvalidFileMode
Invalid file mode (e.g. trying to write when file is opened for reading only)
InvalidCipherOptHandle
Invalid CipherOpt handle
InvalidEncryptPubKeyHandle
Invalid encrypt (box_) 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
InvalidFileContextHandle
Invalid file writer handle
SelfEncryption(SelfEncryptionError<SelfEncryptionStorageError>)
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]
fn fmt(&self, formatter: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl From<CoreError> for AppError
[src]
impl From<IpcError> for AppError
[src]
impl From<ConfigFileHandlerError> for AppError
[src]
fn from(err: ConfigFileHandlerError) -> Self
[src]
Performs the conversion.
impl From<NfsError> for AppError
[src]
impl From<SerialisationError> for AppError
[src]
fn from(_err: SerialisationError) -> Self
[src]
Performs the conversion.
impl From<Utf8Error> for AppError
[src]
impl From<StringError> for AppError
[src]
fn from(_err: StringError) -> Self
[src]
Performs the conversion.
impl From<SelfEncryptionError<SelfEncryptionStorageError>> for AppError
[src]
fn from(err: SelfEncryptionError<SelfEncryptionStorageError>) -> Self
[src]
Performs the conversion.
impl From<IoError> for AppError
[src]
impl<'a> From<&'a str> for AppError
[src]
impl From<String> for AppError
[src]
impl<T: 'static> From<SendError<T>> for AppError
[src]
impl From<NulError> for AppError
[src]
impl From<RecvError> for AppError
[src]
impl From<RecvTimeoutError> for AppError
[src]
fn from(_err: RecvTimeoutError) -> Self
[src]
Performs the conversion.
impl ErrorCode for AppError
[src]
fn error_code(&self) -> i32
[src]
Return the error code corresponding to this instance.