pub enum SourceError {
Io(Error),
MissingField {
field: &'static str,
},
InvalidValue {
field: &'static str,
value: String,
},
EntryNotFound,
EntryWrite {
path: PathBuf,
why: Error,
},
FileNotFound,
SourcesList {
path: PathBuf,
why: Box<SourcesListError>,
},
SourcesListOpen {
path: PathBuf,
why: Error,
},
SyntaxError {
why: String,
},
}
Expand description
An error that may occur when parsing apt sources.
Variants§
Io(Error)
MissingField
InvalidValue
EntryNotFound
EntryWrite
FileNotFound
SourcesList
SourcesListOpen
SyntaxError
Trait Implementations§
source§impl Debug for SourceError
impl Debug for SourceError
source§impl Display for SourceError
impl Display for SourceError
source§impl Error for SourceError
impl Error for SourceError
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Auto Trait Implementations§
impl Freeze for SourceError
impl !RefUnwindSafe for SourceError
impl Send for SourceError
impl Sync for SourceError
impl Unpin for SourceError
impl !UnwindSafe for SourceError
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