[−][src]Struct procspawn::PoolBuilder
Utility to configure a pool.
Methods
impl PoolBuilder[src]
pub fn env<K, V>(&mut self, key: K, val: V) -> &mut Self where
K: AsRef<OsStr>,
V: AsRef<OsStr>, [src]
K: AsRef<OsStr>,
V: AsRef<OsStr>,
Set an environment variable in the spawned process.
Equivalent to Command::env
pub fn envs<I, K, V>(&mut self, vars: I) -> &mut Self where
I: IntoIterator<Item = (K, V)>,
K: AsRef<OsStr>,
V: AsRef<OsStr>, [src]
I: IntoIterator<Item = (K, V)>,
K: AsRef<OsStr>,
V: AsRef<OsStr>,
Set environment variables in the spawned process.
Equivalent to Command::envs
pub fn env_remove<K: AsRef<OsStr>>(&mut self, key: K) -> &mut Self[src]
Removes an environment variable in the spawned process.
Equivalent to Command::env_remove
pub fn env_clear(&mut self) -> &mut Self[src]
Clears all environment variables in the spawned process.
Equivalent to Command::env_clear
pub fn build(self) -> Result<Pool, SpawnError>[src]
Creates the pool.
Auto Trait Implementations
impl RefUnwindSafe for PoolBuilder
impl Send for PoolBuilder
impl Sync for PoolBuilder
impl Unpin for PoolBuilder
impl UnwindSafe for PoolBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,