pub struct StderrReceiver { /* private fields */ }Expand description
Receiving end of the stderr stream.
Owned by the kernel. Call drain_lossy() to collect all pending bytes
as a UTF-8 string (with lossy decode at this boundary).
Implementations§
Source§impl StderrReceiver
impl StderrReceiver
Sourcepub fn drain_lossy(&mut self) -> String
pub fn drain_lossy(&mut self) -> String
Drain all pending bytes and decode as UTF-8 (lossy).
This is the single presentation boundary where bytes become a String. Multi-byte characters that were split across chunks are reassembled here because all chunks are concatenated before decoding.
Returns an empty string if no messages are pending. Non-blocking — returns immediately with whatever is available.
Auto Trait Implementations§
impl Freeze for StderrReceiver
impl RefUnwindSafe for StderrReceiver
impl Send for StderrReceiver
impl Sync for StderrReceiver
impl Unpin for StderrReceiver
impl UnsafeUnpin for StderrReceiver
impl UnwindSafe for StderrReceiver
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