pub struct ToolchainHandle {
pub install_dir: PathBuf,
pub path_dirs: Vec<String>,
pub env: HashMap<String, String>,
}Expand description
A provisioned toolchain: where it lives and how to run it.
path_dirs are absolute directories to prepend to PATH; env are extra
environment variables the caller should set so the tool resolves its own
libraries / exec helpers out of the keg instead of the host. Both are a
direct projection of the keg’s manifest::KegManifest.
Fields§
§install_dir: PathBufRoot directory of the provisioned keg (the cache key dir).
path_dirs: Vec<String>Absolute directories to prepend to PATH.
env: HashMap<String, String>Extra environment variables for running the tool.
Trait Implementations§
Source§impl Clone for ToolchainHandle
impl Clone for ToolchainHandle
Source§fn clone(&self) -> ToolchainHandle
fn clone(&self) -> ToolchainHandle
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 moreAuto Trait Implementations§
impl Freeze for ToolchainHandle
impl RefUnwindSafe for ToolchainHandle
impl Send for ToolchainHandle
impl Sync for ToolchainHandle
impl Unpin for ToolchainHandle
impl UnsafeUnpin for ToolchainHandle
impl UnwindSafe for ToolchainHandle
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