pub struct SystemProcesses { /* private fields */ }Expand description
Starts real processes.
Implementations§
Source§impl SystemProcesses
impl SystemProcesses
Sourcepub fn new(docker_cli_config: Option<&str>) -> SystemProcesses
pub fn new(docker_cli_config: Option<&str>) -> SystemProcesses
Real processes; docker_cli_config is the Docker CLI’s config.json, when there is one
(it says whether the user picked an engine context of their own).
Sourcepub fn for_host(
var: impl Fn(&str) -> Option<String>,
home: Option<&Path>,
) -> SystemProcesses
pub fn for_host( var: impl Fn(&str) -> Option<String>, home: Option<&Path>, ) -> SystemProcesses
SystemProcesses::new with the Docker CLI config read from $DOCKER_CONFIG/config.json,
else <home>/.docker/config.json (var reads the environment, home is the user’s).
Trait Implementations§
Source§impl Clone for SystemProcesses
impl Clone for SystemProcesses
Source§impl Debug for SystemProcesses
impl Debug for SystemProcesses
Source§impl Default for SystemProcesses
impl Default for SystemProcesses
Source§impl ProcessRunner for SystemProcesses
impl ProcessRunner for SystemProcesses
Source§fn run<'a>(
&'a self,
spec: &'a ProcessSpec,
on_line: OnLine<'a>,
) -> BoxFuture<'a, Result<Exit, ProcessError>>
fn run<'a>( &'a self, spec: &'a ProcessSpec, on_line: OnLine<'a>, ) -> BoxFuture<'a, Result<Exit, ProcessError>>
Runs
spec to its end, handing each line it prints to on_line (decoded lossily).Auto Trait Implementations§
impl Freeze for SystemProcesses
impl RefUnwindSafe for SystemProcesses
impl Send for SystemProcesses
impl Sync for SystemProcesses
impl Unpin for SystemProcesses
impl UnsafeUnpin for SystemProcesses
impl UnwindSafe for SystemProcesses
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