pub struct Exec {
pub mode: Mode,
pub data_dir: Option<PathBuf>,
pub envs: Arc<Envs>,
}Expand description
Shared by the tools.
Fields§
§mode: Mode§data_dir: Option<PathBuf>byob’s data folder (holds the managed Python venv and installed packages); None
disables them.
envs: Arc<Envs>Package managers and workspace environments (Envs::none for neither).
Implementations§
Source§impl Exec
impl Exec
Sourcepub fn new(mode: Mode, data_dir: Option<PathBuf>) -> Self
pub fn new(mode: Mode, data_dir: Option<PathBuf>) -> Self
Detects the package managers on this machine.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Exec
impl !UnwindSafe for Exec
impl Forget for Exec
impl Freeze for Exec
impl Move for Exec
impl Send for Exec
impl Sync for Exec
impl Unpin for Exec
impl UnsafeUnpin for Exec
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