#[non_exhaustive]pub enum EncryptionError {
InvalidSetting {
setting: &'static str,
},
SettingMismatch {
setting: &'static str,
},
KeyMismatch,
MarkerMissing,
MarkerInvalid,
UnsupportedFormat {
version: u8,
},
Backend(SmbError),
Random(Error),
}Expand description
Why EncryptedBackendBuilder::build
failed.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidSetting
A setting is outside its range, or cannot go with another setting.
setting names the builder method.
SettingMismatch
A setting the builder was given differs from the share’s. setting
names the builder method.
KeyMismatch
The key is not the share’s: the marker does not verify under it, or
restore_marker
found nothing in the share that the key authenticates. A marker with a
changed byte after its version byte also gives this error.
MarkerMissing
The root of the inner backend holds entries and no marker.
restore_marker
writes a new one.
MarkerInvalid
The marker is not a file of the right size, does not start with the
marker magic, or holds field values outside their ranges. A crash
during the first build can leave a short marker. Deleting a damaged
marker lets
restore_marker
write a new one.
UnsupportedFormat
The marker has a format version this release does not read.
Backend(SmbError)
The inner backend failed.
Random(Error)
The operating system’s random generator failed.
Trait Implementations§
Source§impl Debug for EncryptionError
impl Debug for EncryptionError
Source§impl Display for EncryptionError
impl Display for EncryptionError
Source§impl Error for EncryptionError
impl Error for EncryptionError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()