pub struct LeanWorkerChild { /* private fields */ }Expand description
Locator for an app-owned worker child executable.
Dependency binaries are not automatically installed with downstream
applications. Production apps should ship a tiny binary that calls
crate::run_worker_child_stdio and point the capability builder at it
through this locator.
Implementations§
Source§impl LeanWorkerChild
impl LeanWorkerChild
Sourcepub fn sibling(executable_name: impl Into<String>) -> Self
pub fn sibling(executable_name: impl Into<String>) -> Self
Locate a worker child beside the current executable, or beside the
Cargo profile directory during tests and cargo run.
Sourcepub fn env_override(self, env_var: impl Into<String>) -> Self
pub fn env_override(self, env_var: impl Into<String>) -> Self
Add an environment-variable override for launchers and tests.
Trait Implementations§
Source§impl Clone for LeanWorkerChild
impl Clone for LeanWorkerChild
Source§fn clone(&self) -> LeanWorkerChild
fn clone(&self) -> LeanWorkerChild
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 moreSource§impl Debug for LeanWorkerChild
impl Debug for LeanWorkerChild
Source§impl Default for LeanWorkerChild
impl Default for LeanWorkerChild
Source§impl PartialEq for LeanWorkerChild
impl PartialEq for LeanWorkerChild
Source§fn eq(&self, other: &LeanWorkerChild) -> bool
fn eq(&self, other: &LeanWorkerChild) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for LeanWorkerChild
impl StructuralPartialEq for LeanWorkerChild
Auto Trait Implementations§
impl Freeze for LeanWorkerChild
impl RefUnwindSafe for LeanWorkerChild
impl Send for LeanWorkerChild
impl Sync for LeanWorkerChild
impl Unpin for LeanWorkerChild
impl UnsafeUnpin for LeanWorkerChild
impl UnwindSafe for LeanWorkerChild
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