pub enum ToolPlatform {
MacOS,
Windows,
}Expand description
Target platform for a toolchain provisioning request.
Both platforms provision into the same keg format. macOS goes through
source-build / prebuilt-fetch / brew-emulate ([ensure_macos_keg]); Windows
goes through MinGit / portable-artifact extraction (windows). A Windows
formula with no relocatable portable artifact returns
ToolchainError::NotImplemented so the caller routes it to the HCS
choco-capture path in the runtime layer.
Variants§
MacOS
macOS host — provision via source build / prebuilt fetch into a keg.
Windows
Windows host — provision via MinGit / portable artifact into a keg.
Trait Implementations§
Source§impl Clone for ToolPlatform
impl Clone for ToolPlatform
Source§fn clone(&self) -> ToolPlatform
fn clone(&self) -> ToolPlatform
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ToolPlatform
Source§impl Debug for ToolPlatform
impl Debug for ToolPlatform
impl Eq for ToolPlatform
Source§impl PartialEq for ToolPlatform
impl PartialEq for ToolPlatform
Source§fn eq(&self, other: &ToolPlatform) -> bool
fn eq(&self, other: &ToolPlatform) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ToolPlatform
Auto Trait Implementations§
impl Freeze for ToolPlatform
impl RefUnwindSafe for ToolPlatform
impl Send for ToolPlatform
impl Sync for ToolPlatform
impl Unpin for ToolPlatform
impl UnsafeUnpin for ToolPlatform
impl UnwindSafe for ToolPlatform
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.