pub enum ManifestError {
NotAManifest,
UnknownVersion(String),
BadTarget(String),
BadKernel(String),
BadInput {
line: usize,
fields: usize,
},
BadHash {
line: usize,
found: String,
},
UnknownLicence(String),
UnknownProvenance(String),
EmptyField {
line: usize,
field: &'static str,
},
}Expand description
What went wrong reading a manifest.
Variants§
NotAManifest
The first line was not the one this format starts with.
UnknownVersion(String)
The version in the header is one this build does not read.
BadTarget(String)
The second line did not name a target, or named one that does not parse.
BadKernel(String)
The kernel line was there and what followed it is not a Linux release.
BadInput
A line did not have the six fields an input has.
Fields
BadHash
A hash that is not sixty four lowercase hex characters.
UnknownLicence(String)
A licence spelling nothing here knows.
UnknownProvenance(String)
A provenance spelling nothing here knows.
EmptyField
An empty field where a source, a URL or a path belongs. A record with a hole in it is worse than no record, because it reads as an answer.
Trait Implementations§
Source§impl Clone for ManifestError
impl Clone for ManifestError
Source§fn clone(&self) -> ManifestError
fn clone(&self) -> ManifestError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ManifestError
impl Debug for ManifestError
Source§impl Display for ManifestError
impl Display for ManifestError
impl Eq for ManifestError
Source§impl Error for ManifestError
impl Error for ManifestError
1.30.0 · 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 PartialEq for ManifestError
impl PartialEq for ManifestError
impl StructuralPartialEq for ManifestError
Auto Trait Implementations§
impl Freeze for ManifestError
impl RefUnwindSafe for ManifestError
impl Send for ManifestError
impl Sync for ManifestError
impl Unpin for ManifestError
impl UnsafeUnpin for ManifestError
impl UnwindSafe for ManifestError
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