pub struct Lines(/* private fields */);Expand description
The caller’s side of a line queue, which yields each line of the stream without its newline as the run reads it. Dropping it tells the run that nobody reads the lines, and the run reads the rest of the stream and drops it.
Implementations§
Source§impl Lines
impl Lines
Sourcepub fn recv(&self) -> Option<Vec<u8>>
pub fn recv(&self) -> Option<Vec<u8>>
Waits for the next line and returns it, or returns None once the
run has ended and every queued line has been returned.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Lines
impl Freeze for Lines
impl RefUnwindSafe for Lines
impl Send for Lines
impl Sync for Lines
impl Unpin for Lines
impl UnsafeUnpin for Lines
impl UnwindSafe for Lines
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