pub enum ResolverError {
Io(Error),
DirNotFound {
path: String,
},
NotManaged {
domain: String,
},
InvalidConfig(String),
}Expand description
Errors returned by resolver operations.
Variants§
Io(Error)
Filesystem I/O failed (typically PermissionDenied on /etc/resolver/).
DirNotFound
The resolver directory does not exist and could not be created.
NotManaged
Attempted to remove a resolver file not managed by this crate.
InvalidConfig(String)
Invalid configuration values.
Implementations§
Source§impl ResolverError
impl ResolverError
Sourcepub fn is_permission_denied(&self) -> bool
pub fn is_permission_denied(&self) -> bool
Returns true if the underlying I/O error is PermissionDenied.
Trait Implementations§
Source§impl Debug for ResolverError
impl Debug for ResolverError
Source§impl Display for ResolverError
impl Display for ResolverError
Source§impl Error for ResolverError
impl Error for ResolverError
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()
Auto Trait Implementations§
impl Freeze for ResolverError
impl !RefUnwindSafe for ResolverError
impl Send for ResolverError
impl Sync for ResolverError
impl Unpin for ResolverError
impl UnsafeUnpin for ResolverError
impl !UnwindSafe for ResolverError
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