pub struct Command { /* private fields */ }Expand description
A started command. With omitted stdin the handle keeps it open.
Implementations§
Source§impl Command
impl Command
pub async fn wait(&self) -> Result<CommandResult>
Sourcepub async fn signal(&self, number: i32) -> Result<()>
pub async fn signal(&self, number: i32) -> Result<()>
Sends to the process group. The protocol has no success acknowledgment.
pub async fn write_stdin(&self, data: &[u8]) -> Result<()>
pub async fn close_stdin(&self) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Command
impl !RefUnwindSafe for Command
impl !UnwindSafe for Command
impl Forget for Command
impl Move for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Commandwhere
*const ArcInner<Session> is !null: UnsafeUnpin,
PhantomData<ArcInner<Session>>: UnsafeUnpin,
*const ArcInner<Shared<OperationState>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Shared<OperationState>>>: UnsafeUnpin,
Align4<u32>: UnsafeUnpin,
Align1<u8>: UnsafeUnpin,
*const Waiter is !null: UnsafeUnpin,
Align8<usize>: UnsafeUnpin,
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