#[non_exhaustive]pub struct RunnerConfig {
pub home: PathBuf,
pub processes: Arc<dyn ProcessRunner>,
pub ports: Arc<dyn HostPorts>,
pub host: HostOs,
/* private fields */
}Expand description
How a runner is built: its home, and the ports it reaches the world through. Start from
RunnerConfig::new and set a field to change it (config.processes = Arc::new(fake)).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.home: PathBufThe runner’s home (runs/ under it). An app passes its data folder; the
isothrum command line uses ~/.isothrum.
processes: Arc<dyn ProcessRunner>Starts the tools.
ports: Arc<dyn HostPorts>The host’s ports.
host: HostOsThe host’s operating system (it picks the providers a Vagrant run may use, and elevation).
Implementations§
Source§impl RunnerConfig
impl RunnerConfig
Sourcepub fn new(home: impl Into<PathBuf>) -> RunnerConfig
pub fn new(home: impl Into<PathBuf>) -> RunnerConfig
A runner at home on this host: real processes (told the Docker CLI’s config, see
SystemProcesses), the loopback, the system’s clock, and what it needs of this process’s
environment, read now (TF_PLUGIN_CACHE_DIR, the proxies, the CA bundles,
Terraform’s CLI configuration, Vagrant’s variables, USERPROFILE).
Trait Implementations§
Source§impl Clone for RunnerConfig
impl Clone for RunnerConfig
Auto Trait Implementations§
impl !RefUnwindSafe for RunnerConfig
impl !UnwindSafe for RunnerConfig
impl Forget for RunnerConfig
impl Freeze for RunnerConfig
impl Move for RunnerConfig
impl Send for RunnerConfig
impl Sync for RunnerConfig
impl Unpin for RunnerConfig
impl UnsafeUnpin for RunnerConfig
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