pub struct Child {
pub output_stream: Option<BoxStream<'static, ChildOutput>>,
/* private fields */
}
Fields
output_stream: Option<BoxStream<'static, ChildOutput>>
A stream of outputs from the remote child process.
Similar to std::process::Child
, you should take
this instance to avoid partial moves:
let output_stream = child.output_stream.take().unwrap();
Implementations
sourceimpl Child
impl Child
sourcepub async fn shutdown(&mut self)
pub async fn shutdown(&mut self)
Closes the write half of the connection to the server, which will trigger cancellation in well behaved servers. Because the read half of the connection will still be open, a well behaved server/Nail will render teardown information before exiting.
Dropping the Child instance also triggers cancellation, but closes both the read and write halves of the connection at the same time (which does not allow for orderly shutdown of the server).
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Child
impl Send for Child
impl !Sync for Child
impl Unpin for Child
impl !UnwindSafe for Child
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more