pub enum SyncEnvironment {
Inherit,
Explicit(Vec<(OsString, OsString)>),
}Expand description
Environment base selected by the shared caller for a synchronous spawn.
Explicit Command::env additions and removals remain on the command and
are applied after this base by the selected platform implementation.
Variants§
Inherit
Start with the spawning process’s ambient environment.
Explicit(Vec<(OsString, OsString)>)
Start with this complete, caller-assembled base environment.
Trait Implementations§
Source§impl Clone for SyncEnvironment
impl Clone for SyncEnvironment
Source§fn clone(&self) -> SyncEnvironment
fn clone(&self) -> SyncEnvironment
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 SyncEnvironment
impl Debug for SyncEnvironment
impl Eq for SyncEnvironment
Source§impl PartialEq for SyncEnvironment
impl PartialEq for SyncEnvironment
impl StructuralPartialEq for SyncEnvironment
Auto Trait Implementations§
impl Freeze for SyncEnvironment
impl RefUnwindSafe for SyncEnvironment
impl Send for SyncEnvironment
impl Sync for SyncEnvironment
impl Unpin for SyncEnvironment
impl UnsafeUnpin for SyncEnvironment
impl UnwindSafe for SyncEnvironment
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more