pub enum ToolchainError {
UnparseableToolchainString(String),
LeanToolchainFileMissing(PathBuf),
ElanToolchainNotInstalled {
toolchain: ToolchainId,
elan_dir: PathBuf,
},
WorkerNotInstalled {
toolchain: ToolchainId,
install_cmd: String,
},
}Expand description
Typed failures during toolchain resolution. Project-open code maps
these into crate::error::ServerError::BadProject.
Variants§
UnparseableToolchainString(String)
LeanToolchainFileMissing(PathBuf)
ElanToolchainNotInstalled
WorkerNotInstalled
Trait Implementations§
Source§impl Debug for ToolchainError
impl Debug for ToolchainError
Source§impl Display for ToolchainError
impl Display for ToolchainError
Source§impl Error for ToolchainError
impl Error for ToolchainError
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()
Auto Trait Implementations§
impl Freeze for ToolchainError
impl RefUnwindSafe for ToolchainError
impl Send for ToolchainError
impl Sync for ToolchainError
impl Unpin for ToolchainError
impl UnsafeUnpin for ToolchainError
impl UnwindSafe for ToolchainError
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