pub struct ShObject {
pub argument: String,
pub state: ShObjectState,
pub child: Option<Child>,
pub output: Option<Output>,
pub env: Option<Vec<(String, String)>>,
pub cwd: Option<String>,
}
Fields
argument: String
state: ShObjectState
child: Option<Child>
output: Option<Output>
env: Option<Vec<(String, String)>>
cwd: Option<String>
Implementations
sourceimpl ShObject
impl ShObject
pub fn new(command: String) -> ObjectRef
pub fn spawn(&mut self) -> RuntimeResult<()>
pub fn join(&mut self) -> RuntimeResult<()>
pub fn stdout(&mut self) -> RuntimeResult<ObjectRef>
pub fn stderr(&mut self) -> RuntimeResult<ObjectRef>
pub fn exit_code(&mut self) -> RuntimeResult<ObjectRef>
pub fn kill(&mut self) -> RuntimeResult<()>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ShObject
impl Send for ShObject
impl Sync for ShObject
impl Unpin for ShObject
impl UnwindSafe for ShObject
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more