pub enum DirectoryError {
Parse(String),
Io(String),
EmptyField {
vendor: String,
field: &'static str,
},
DuplicateHost {
host: String,
vendors: (String, String),
},
}Expand description
Why a directory could not be loaded.
Variants§
Trait Implementations§
Source§impl Clone for DirectoryError
impl Clone for DirectoryError
Source§fn clone(&self) -> DirectoryError
fn clone(&self) -> DirectoryError
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 DirectoryError
impl Debug for DirectoryError
Source§impl Display for DirectoryError
impl Display for DirectoryError
impl Eq for DirectoryError
Source§impl Error for DirectoryError
impl Error for DirectoryError
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 DirectoryError
impl PartialEq for DirectoryError
impl StructuralPartialEq for DirectoryError
Auto Trait Implementations§
impl Freeze for DirectoryError
impl RefUnwindSafe for DirectoryError
impl Send for DirectoryError
impl Sync for DirectoryError
impl Unpin for DirectoryError
impl UnsafeUnpin for DirectoryError
impl UnwindSafe for DirectoryError
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