#[non_exhaustive]pub enum ToolchainError {
NotInstalled,
UnsupportedOperation,
}Expand description
Error caused by methods in the toolchain moodule.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NotInstalled
The toolchain is not installed in the workspace, but the called method requires it to be
present. Use the Toolchain::Install method to
install it inside the workspace.
UnsupportedOperation
Not every method can be called with every kind of toolchain. If you receive this error please check the documentation of the method you’re calling to see which toolchains can you use with it.
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 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