Enum alpm_utils::config::ErrorKind
source · pub enum ErrorKind {
NoSection(String),
MissingValue(String, String),
InvalidValue(String, String, String),
UnknownKey(String, String),
Runtime(String),
Utf8(Utf8Error),
Io(Error),
}
Expand description
A list of possible errors that may occur when parsing a pacman.conf
Variants§
NoSection(String)
A directive was specified outside of a section. The variant holds the key name.
MissingValue(String, String)
A directive that requires a value was specified without a value. The variant holds the section and key.
InvalidValue(String, String, String)
A directive was given with an invalid value. The variant holds the section, key and value.
UnknownKey(String, String)
A directive was given with an unknown key. The variant holds the section and key.
Runtime(String)
An error occurred while executing pacman-conf. This variant hold the stdout of pacman-coonf
Utf8(Utf8Error)
A utf8 error occurred.
Io(Error)
An IO error occurred.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ErrorKind
impl !RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl !UnwindSafe for ErrorKind
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