pub struct RemoteStdout(/* private fields */);
Expand description
A handle to a remote process’ standard output (stdout)
Implementations§
Source§impl RemoteStdout
impl RemoteStdout
Sourcepub fn try_read(&mut self) -> Result<Option<Vec<u8>>>
pub fn try_read(&mut self) -> Result<Option<Vec<u8>>>
Tries to receive latest stdout for a remote process, yielding None
if no stdout is available, and BrokenPipe
if stdout has been closed
Sourcepub fn try_read_string(&mut self) -> Result<Option<String>>
pub fn try_read_string(&mut self) -> Result<Option<String>>
Same as try_read
, but returns a string
Sourcepub async fn read(&mut self) -> Result<Vec<u8>>
pub async fn read(&mut self) -> Result<Vec<u8>>
Retrieves the latest stdout for a specific remote process, and BrokenPipe
if stdout has
been closed
Sourcepub async fn read_string(&mut self) -> Result<String>
pub async fn read_string(&mut self) -> Result<String>
Same as read
, but returns a string
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RemoteStdout
impl RefUnwindSafe for RemoteStdout
impl Send for RemoteStdout
impl Sync for RemoteStdout
impl Unpin for RemoteStdout
impl UnwindSafe for RemoteStdout
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