pub struct PaneRenderStream { /* private fields */ }Expand description
Minimal event-driven render stream for one pane.
This render stream is intentionally built from Pane::output_stream:
output wakes the stream, a short debounce coalesces bursts, then the SDK
captures a fresh snapshot and emits it only when the snapshot revision
changed. It avoids blind fixed-rate refresh loops without claiming a
daemon-native revision stream.
Implementations§
Source§impl PaneRenderStream
impl PaneRenderStream
Sourcepub const fn with_debounce(self, debounce: Duration) -> Self
pub const fn with_debounce(self, debounce: Duration) -> Self
Overrides the debounce used before capturing snapshots after output.
Sourcepub async fn next(&mut self) -> Result<Option<RenderUpdate>>
pub async fn next(&mut self) -> Result<Option<RenderUpdate>>
Returns the next render update, or None once the underlying output
subscription closes.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for PaneRenderStream
impl !UnwindSafe for PaneRenderStream
impl Freeze for PaneRenderStream
impl Send for PaneRenderStream
impl Sync for PaneRenderStream
impl Unpin for PaneRenderStream
impl UnsafeUnpin for PaneRenderStream
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