#[non_exhaustive]pub enum Error {
Show 34 variants
BlockCorrupt {
hash: BlockHash,
},
AddressTooLong {
address: Address,
actual_len: usize,
},
NotAnArchive,
UnsupportedArchiveVersion {
version: String,
},
UnsupportedBandVersion {
band_id: BandId,
version: String,
},
ArchiveEmpty,
NoCompleteBands,
UnsupportedBandFormatFlags {
band_id: BandId,
unsupported_flags: Vec<Cow<'static, str>>,
},
DestinationNotEmpty,
NewArchiveDirectoryNotEmpty,
InvalidVersion {
version: String,
},
BandHeadMissing {
band_id: BandId,
},
DeleteWithIncompleteBackup {
band_id: BandId,
},
DeleteWithConcurrentActivity,
GarbageCollectionLockHeld,
GarbageCollectionLockHeldDuringBackup,
ParseGlob {
source: Error,
},
DeserializeJson {
path: String,
source: Error,
},
SerializeJson {
source: Error,
},
InvalidMetadata {
details: String,
},
BandNotFound {
band_id: BandId,
},
ListBands {
source: Error,
},
ReadSourceFile {
path: PathBuf,
source: Error,
},
UnsupportedSourceKind {
path: PathBuf,
},
UnsupportedTargetEncoding {
path: PathBuf,
},
ListSourceTree {
path: PathBuf,
source: Error,
},
Restore {
path: PathBuf,
source: Error,
},
RestoreModificationTime {
path: PathBuf,
source: Error,
},
UrlScheme {
scheme: String,
},
UnexpectedFile {
path: String,
},
IOError {
source: Error,
},
SetOwner {
source: Error,
path: PathBuf,
},
SnapCompressionError {
source: Error,
},
Transport {
source: Error,
},
}
Expand description
Conserve specific error.
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.
BlockCorrupt
AddressTooLong
NotAnArchive
UnsupportedArchiveVersion
UnsupportedBandVersion
ArchiveEmpty
NoCompleteBands
UnsupportedBandFormatFlags
DestinationNotEmpty
NewArchiveDirectoryNotEmpty
InvalidVersion
BandHeadMissing
DeleteWithIncompleteBackup
DeleteWithConcurrentActivity
GarbageCollectionLockHeld
GarbageCollectionLockHeldDuringBackup
ParseGlob
DeserializeJson
SerializeJson
InvalidMetadata
BandNotFound
ListBands
ReadSourceFile
UnsupportedSourceKind
UnsupportedTargetEncoding
ListSourceTree
Restore
RestoreModificationTime
UrlScheme
UnexpectedFile
IOError
Generic IO error.
SetOwner
SnapCompressionError
Transport
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()
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§
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§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