pub struct CommandBuilder<Mode> { /* private fields */ }Expand description
A command to run: Commands::run or Commands::spawn, then how it
starts; awaited, its result or a handle to it.
Implementations§
Source§impl<Mode> CommandBuilder<Mode>
impl<Mode> CommandBuilder<Mode>
Source§impl CommandBuilder<Background>
impl CommandBuilder<Background>
Sourcepub fn open_stdin(self) -> Self
pub fn open_stdin(self) -> Self
Keeps its stdin open, for CommandHandle::send_stdin.
Trait Implementations§
Source§impl IntoFuture for CommandBuilder<Foreground>
impl IntoFuture for CommandBuilder<Foreground>
Source§type Output = Result<CommandResult, Error>
type Output = Result<CommandResult, Error>
The output that the future will produce on completion.
Source§type IntoFuture = Pin<Box<dyn Future<Output = Result<CommandResult, Error>> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = Result<CommandResult, Error>> + Send>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Source§impl IntoFuture for CommandBuilder<Background>
impl IntoFuture for CommandBuilder<Background>
Source§type Output = Result<CommandHandle, Error>
type Output = Result<CommandHandle, Error>
The output that the future will produce on completion.
Source§type IntoFuture = Pin<Box<dyn Future<Output = Result<CommandHandle, Error>> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = Result<CommandHandle, Error>> + Send>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl<Mode> !RefUnwindSafe for CommandBuilder<Mode>
impl<Mode> !Sync for CommandBuilder<Mode>
impl<Mode> !UnwindSafe for CommandBuilder<Mode>
impl<Mode> Forget for CommandBuilder<Mode>
impl<Mode> Freeze for CommandBuilder<Mode>where
PhantomData<Mode>: Freeze,
impl<Mode> Send for CommandBuilder<Mode>where
PhantomData<Mode>: Send,
impl<Mode> Unpin for CommandBuilder<Mode>where
PhantomData<Mode>: Unpin,
impl<Mode> UnsafeUnpin for CommandBuilder<Mode>where
PhantomData<Mode>: 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