Struct distant_core::RemoteStderr
source · pub struct RemoteStderr(_);
Expand description
A handle to a remote process’ stderr
Implementations§
source§impl RemoteStderr
impl RemoteStderr
sourcepub fn try_read(&mut self) -> Result<Option<Vec<u8>>>
pub fn try_read(&mut self) -> Result<Option<Vec<u8>>>
Tries to receive latest stderr for a remote process, yielding None
if no stderr is available, and BrokenPipe
if stderr 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 stderr for a specific remote process, and BrokenPipe
if stderr 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 !RefUnwindSafe for RemoteStderr
impl Send for RemoteStderr
impl Sync for RemoteStderr
impl Unpin for RemoteStderr
impl !UnwindSafe for RemoteStderr
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