pub enum Availability {
Selectable {
path: PathBuf,
version: Version,
},
NotFound,
Unusable(ToolchainError),
ConfiguredUnusable(ToolchainError),
}Expand description
Whether a compiler can be selected here, and if not, why.
Variants§
Selectable
Selecting it would use this copy, of this version.
NotFound
No copy was found: none installed, or no Visual Studio for cl.
Unusable(ToolchainError)
Copies were found and none can be used, for this reason (too old, a preview, another target).
ConfiguredUnusable(ToolchainError)
The copy written in [toolchain.paths] (or the Visual Studio in
[toolchain.paths] msvc) cannot be used. Unlike Self::Unusable,
this is the user’s own setting that is wrong, which is a problem
even for a compiler not in use (docs/en/specs/commands.md, “cuno doctor”).
Trait Implementations§
Auto Trait Implementations§
impl Forget for Availability
impl Freeze for Availabilitywhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<PathBuf>: Freeze,
&'static str: Freeze,
PhantomData<String>: Freeze,
PhantomData<Version>: Freeze,
impl Move for Availability
impl RefUnwindSafe for Availability
impl Send for Availability
impl Sync for Availabilitywhere
RawVecInner: Sync,
impl Unpin for Availability
impl UnsafeUnpin for Availabilitywhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<PathBuf>: UnsafeUnpin,
&'static str: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<Version>: UnsafeUnpin,
impl UnwindSafe for Availability
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