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
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 (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 Debug for AppError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for AppError
[src]
impl Display for AppError
fn fmt(&self, formatter: &mut Formatter) -> Result
[src]
fn fmt(&self, formatter: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl From<CoreError> for AppError
[src]
impl From<CoreError> for AppError
impl From<IpcError> for AppError
[src]
impl From<IpcError> for AppError
impl From<ConfigFileHandlerError> for AppError
[src]
impl From<ConfigFileHandlerError> for AppError
fn from(err: ConfigFileHandlerError) -> Self
[src]
fn from(err: ConfigFileHandlerError) -> Self
Performs the conversion.
impl From<NfsError> for AppError
[src]
impl From<NfsError> for AppError
impl From<SerialisationError> for AppError
[src]
impl From<SerialisationError> for AppError
fn from(_err: SerialisationError) -> Self
[src]
fn from(_err: SerialisationError) -> Self
Performs the conversion.
impl From<Utf8Error> for AppError
[src]
impl From<Utf8Error> for AppError
impl From<StringError> for AppError
[src]
impl From<StringError> for AppError
fn from(_err: StringError) -> Self
[src]
fn from(_err: StringError) -> Self
Performs the conversion.
impl From<SelfEncryptionError<SelfEncryptionStorageError>> for AppError
[src]
impl From<SelfEncryptionError<SelfEncryptionStorageError>> for AppError
fn from(err: SelfEncryptionError<SelfEncryptionStorageError>) -> Self
[src]
fn from(err: SelfEncryptionError<SelfEncryptionStorageError>) -> Self
Performs the conversion.
impl From<IoError> for AppError
[src]
impl From<IoError> for AppError
impl<'a> From<&'a str> for AppError
[src]
impl<'a> From<&'a str> for AppError
impl From<String> for AppError
[src]
impl From<String> for AppError
impl<T: 'static> From<SendError<T>> for AppError
[src]
impl<T: 'static> From<SendError<T>> for AppError
impl From<NulError> for AppError
[src]
impl From<NulError> for AppError
impl From<RecvError> for AppError
[src]
impl From<RecvError> for AppError
impl From<RecvTimeoutError> for AppError
[src]
impl From<RecvTimeoutError> for AppError
fn from(_err: RecvTimeoutError) -> Self
[src]
fn from(_err: RecvTimeoutError) -> Self
Performs the conversion.
impl ErrorCode for AppError
[src]
impl ErrorCode for AppError
fn error_code(&self) -> i32
[src]
fn error_code(&self) -> i32
Return the error code corresponding to this instance.