Struct deno_task_shell::ShellPipeReader
source · pub struct ShellPipeReader(_);
Expand description
Reader side of a pipe.
Implementations§
source§impl ShellPipeReader
impl ShellPipeReader
pub fn stdin() -> ShellPipeReader
pub fn from_raw(reader: PipeReader) -> Self
pub fn into_stdio(self) -> Stdio
sourcepub fn pipe_to(self, writer: &mut dyn Write) -> Result<()>
pub fn pipe_to(self, writer: &mut dyn Write) -> Result<()>
Pipe everything to the specified writer
sourcepub fn pipe_to_sender(self, sender: ShellPipeWriter) -> Result<()>
pub fn pipe_to_sender(self, sender: ShellPipeWriter) -> Result<()>
Pipes this pipe to the specified sender.
sourcepub fn pipe_to_string_handle(self) -> JoinHandle<String>
pub fn pipe_to_string_handle(self) -> JoinHandle<String>
Pipes the reader to a string handle that is resolved when the pipe’s writer is closed.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for ShellPipeReader
impl Send for ShellPipeReader
impl Sync for ShellPipeReader
impl Unpin for ShellPipeReader
impl UnwindSafe for ShellPipeReader
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