pub enum NewDiskError {
Crypto(Error),
InvalidKeySize,
}
Expand description
An error that occurred while creating a new encrypted disk.
Variants§
Crypto(Error)
An error occurred during cryptographic operations.
InvalidKeySize
The key size is invalid.
Trait Implementations§
Source§impl Debug for NewDiskError
impl Debug for NewDiskError
Source§impl Display for NewDiskError
impl Display for NewDiskError
Source§impl Error for NewDiskError
impl Error for NewDiskError
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()
Auto Trait Implementations§
impl Freeze for NewDiskError
impl RefUnwindSafe for NewDiskError
impl Send for NewDiskError
impl Sync for NewDiskError
impl Unpin for NewDiskError
impl UnwindSafe for NewDiskError
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