pub struct BackgroundProcess {
pub(crate) child: Child,
pub(crate) command: String,
}
Expand description
A background process.
Tracks a Child
which represents a process that runs in the background.
The background process is automatically killed upon dropping the BackgroundProcess
.
Fields§
§child: Child
§command: String
Implementations§
Trait Implementations§
Source§impl Debug for BackgroundProcess
impl Debug for BackgroundProcess
Source§impl Drop for BackgroundProcess
impl Drop for BackgroundProcess
Source§fn drop(&mut self)
fn drop(&mut self)
Kills the tracked background process when destructing the BackgroundProcess
.
Auto Trait Implementations§
impl Freeze for BackgroundProcess
impl RefUnwindSafe for BackgroundProcess
impl Send for BackgroundProcess
impl Sync for BackgroundProcess
impl Unpin for BackgroundProcess
impl UnwindSafe for BackgroundProcess
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> 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