pub enum InstallError {
AlreadyBuilt {
dir: PathBuf,
earlier: String,
},
Unreadable {
dir: PathBuf,
source: Error,
},
}Expand description
Why an explicit installation was refused.
Variants§
AlreadyBuilt
The registry was already built — from a different directory, or from none — before this directory was offered. The order is the rule: a host installs its plugin directory before anything resolves a name.
Fields
Unreadable
The directory cannot be read at all — it is missing, or not a directory, or not readable by this process.
Trait Implementations§
Source§impl Debug for InstallError
impl Debug for InstallError
Source§impl Display for InstallError
impl Display for InstallError
Source§impl Error for InstallError
impl Error for InstallError
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 !RefUnwindSafe for InstallError
impl !UnwindSafe for InstallError
impl Forget for InstallError
impl Freeze for InstallError
impl Send for InstallError
impl Sync for InstallError
impl Unpin for InstallError
impl UnsafeUnpin for InstallError
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