pub enum BundleError {
Show 18 variants
Root {
path: PathBuf,
source: Error,
},
NotDirectory(PathBuf),
TargetExists(PathBuf),
ReadDocument {
path: PathBuf,
source: Error,
},
DocumentJson(Error),
Document(DocumentError),
UnsupportedEntry {
path: PathBuf,
},
NotExecutable {
path: PathBuf,
},
UnexpectedFile {
path: PathBuf,
},
UnindexedDirectory {
path: PathBuf,
},
MissingFile {
path: PathBuf,
},
ReadFile {
path: PathBuf,
source: Error,
},
Integrity {
path: PathBuf,
expected: Sha256Digest,
actual: Sha256Digest,
},
Size {
path: PathBuf,
expected: u64,
actual: u64,
},
UndeclaredAsset {
id: AssetId,
},
Path(BundlePathError),
Digest(DigestError),
Selection(SelectionError),
}Expand description
Why reading or validating a bundle failed.
Variants§
Root
NotDirectory(PathBuf)
TargetExists(PathBuf)
ReadDocument
DocumentJson(Error)
Document(DocumentError)
UnsupportedEntry
NotExecutable
UnexpectedFile
UnindexedDirectory
MissingFile
ReadFile
Integrity
Size
UndeclaredAsset
Path(BundlePathError)
Digest(DigestError)
Selection(SelectionError)
Trait Implementations§
Source§impl Debug for BundleError
impl Debug for BundleError
Source§impl Display for BundleError
impl Display for BundleError
Source§impl Error for BundleError
impl Error for BundleError
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<BundlePathError> for BundleError
impl From<BundlePathError> for BundleError
Source§fn from(source: BundlePathError) -> Self
fn from(source: BundlePathError) -> Self
Converts to this type from the input type.
Source§impl From<DigestError> for BundleError
impl From<DigestError> for BundleError
Source§fn from(source: DigestError) -> Self
fn from(source: DigestError) -> Self
Converts to this type from the input type.
Source§impl From<DocumentError> for BundleError
impl From<DocumentError> for BundleError
Source§fn from(source: DocumentError) -> Self
fn from(source: DocumentError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for BundleError
impl From<Error> for BundleError
Source§impl From<SelectionError> for BundleError
impl From<SelectionError> for BundleError
Source§fn from(source: SelectionError) -> Self
fn from(source: SelectionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for BundleError
impl !UnwindSafe for BundleError
impl Freeze for BundleError
impl Send for BundleError
impl Sync for BundleError
impl Unpin for BundleError
impl UnsafeUnpin for BundleError
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