#[non_exhaustive]pub enum EncryptedWriteError {
Io(Error),
Encrypt(EncryptError),
}Expand description
Why encrypted_write could not write a file.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Io(Error)
The file could not be created, written or synced; it must not exist yet.
Encrypt(EncryptError)
The data could not be encrypted.
Trait Implementations§
Source§impl Debug for EncryptedWriteError
impl Debug for EncryptedWriteError
Source§impl Display for EncryptedWriteError
impl Display for EncryptedWriteError
Source§impl Error for EncryptedWriteError
impl Error for EncryptedWriteError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<EncryptError> for EncryptedWriteError
impl From<EncryptError> for EncryptedWriteError
Source§fn from(source: EncryptError) -> Self
fn from(source: EncryptError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EncryptedWriteError
impl !RefUnwindSafe for EncryptedWriteError
impl Send for EncryptedWriteError
impl Sync for EncryptedWriteError
impl Unpin for EncryptedWriteError
impl !UnwindSafe for EncryptedWriteError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more