pub struct PaneLineStream { /* private fields */ }Expand description
Opaque live stream of rendered pane output lines.
Construction goes through Pane::line_stream.
See the module docs for the lossy UTF-8 and partial-line buffering
rules.
Implementations§
Source§impl PaneLineStream
impl PaneLineStream
Sourcepub async fn next(&mut self) -> Result<Option<PaneLineItem>>
pub async fn next(&mut self) -> Result<Option<PaneLineItem>>
Returns the next line or lag notice, awaiting daemon output if necessary.
Returns Ok(None) when the underlying subscription is gone. Any
trailing partial-line bytes that were never terminated by \n
are dropped at end-of-stream because the daemon never delivered a
terminator — they did not represent a complete line.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for PaneLineStream
impl !UnwindSafe for PaneLineStream
impl Freeze for PaneLineStream
impl Send for PaneLineStream
impl Sync for PaneLineStream
impl Unpin for PaneLineStream
impl UnsafeUnpin for PaneLineStream
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