pub enum Error {
Show 15 variants
BlockCorrupt(PathBuf),
NotAnArchive(PathBuf),
NotADirectory(PathBuf),
NotAFile(PathBuf),
UnsupportedArchiveVersion(String),
DestinationNotEmpty(PathBuf),
ArchiveEmpty,
NoCompleteBands,
InvalidVersion,
BandIncomplete(BandId),
IoError(Error),
JsonDecode(DecoderError),
BadGlob(Error),
IndexCorrupt(PathBuf),
FileCorrupt {
apath: Apath,
expected_hex: String,
actual_hex: String,
},
}
Expand description
Conserve specific error.
Variants§
BlockCorrupt(PathBuf)
NotAnArchive(PathBuf)
NotADirectory(PathBuf)
NotAFile(PathBuf)
UnsupportedArchiveVersion(String)
DestinationNotEmpty(PathBuf)
ArchiveEmpty
NoCompleteBands
InvalidVersion
BandIncomplete(BandId)
IoError(Error)
JsonDecode(DecoderError)
BadGlob(Error)
IndexCorrupt(PathBuf)
FileCorrupt
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<DecoderError> for Error
impl From<DecoderError> for Error
source§fn from(c: DecoderError) -> Error
fn from(c: DecoderError) -> Error
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> Separable for Twhere
T: Display,
impl<T> Separable for Twhere
T: Display,
source§fn separate_by_policy(&self, policy: SeparatorPolicy<'_>) -> String
fn separate_by_policy(&self, policy: SeparatorPolicy<'_>) -> String
Adds separators according to the given
SeparatorPolicy
. Read moresource§fn separate_with_commas(&self) -> String
fn separate_with_commas(&self) -> String
Inserts a comma every three digits from the right. Read more
source§fn separate_with_spaces(&self) -> String
fn separate_with_spaces(&self) -> String
Inserts a space every three digits from the right. Read more
source§fn separate_with_dots(&self) -> String
fn separate_with_dots(&self) -> String
Inserts a period every three digits from the right. Read more
source§fn separate_with_underscores(&self) -> String
fn separate_with_underscores(&self) -> String
Inserts an underscore every three digits from the right. Read more