Struct pyoxidizerlib::environment::Environment [−][src]
pub struct Environment {
pub pyoxidizer_source: PyOxidizerSource,
// some fields omitted
}Describes the PyOxidizer run-time environment.
Fields
pyoxidizer_source: PyOxidizerSourceWhere a copy of PyOxidizer can be obtained from.
Implementations
impl Environment[src]
impl Environment[src]pub fn new() -> Result<Self>[src]
Obtain a new instance.
pub fn cache_dir(&self) -> &Path[src]
Cache directory for PyOxidizer to use.
The cache is per-user but multi-process.
pub fn python_distributions_dir(&self) -> PathBuf[src]
Directory to use for storing Python distributions.
pub fn rust_dir(&self) -> PathBuf[src]
Directory to hold Rust toolchains.
pub fn unmanage_rust(&mut self) -> Result<()>[src]
Do not use a managed Rust.
When called, [self.ensure_rust_toolchain()] will attempt to locate a Rust install on the system rather than manage it itself.
pub fn find_executable(&self, name: &str) -> Result<Option<PathBuf>>[src]
Find an executable of the given name.
Resolves to Some(T) if an executable was found or None if not.
Errors if there were problems searching for executables.
pub fn ensure_rust_toolchain(
&self,
logger: &Logger,
target_triple: Option<&str>
) -> Result<RustEnvironment>[src]
&self,
logger: &Logger,
target_triple: Option<&str>
) -> Result<RustEnvironment>
Ensure a Rust toolchain suitable for building is available.
Trait Implementations
impl Clone for Environment[src]
impl Clone for Environment[src]fn clone(&self) -> Environment[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
Auto Trait Implementations
impl RefUnwindSafe for Environment
impl RefUnwindSafe for Environmentimpl Send for Environment
impl Send for Environmentimpl Sync for Environment
impl Sync for Environmentimpl Unpin for Environment
impl Unpin for Environmentimpl UnwindSafe for Environment
impl UnwindSafe for EnvironmentBlanket Implementations
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T> Same<T> for T
impl<T> Same<T> for Ttype Output = T
Should always be Self
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized, [src]
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized, [src]impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,