pub enum ChildIn {
Pipe(PipeRecv),
File(File),
Reader(Box<dyn AsyncRead + Send + Unpin>),
}Expand description
What a child reads as its standard input.
Variants§
Pipe(PipeRecv)
The read end of a pipe.
File(File)
A file, read from its cursor.
Once the child has exited, the cursor is wherever the child left off, so reading through the file picks up after what the child consumed. Every clone shares the cursor, so it moves for all of them.
Reader(Box<dyn AsyncRead + Send + Unpin>)
A stream, copied into a pipe while the child runs.
The copy may read past what the child consumed. Once the child exits,
the copy stops, and an error it met is reported by
Child::relay_error unless it is io::ErrorKind::BrokenPipe.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ChildIn
impl !RefUnwindSafe for ChildIn
impl !Sync for ChildIn
impl !UnwindSafe for ChildIn
impl Send for ChildIn
impl Unpin for ChildIn
impl UnsafeUnpin for ChildIn
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