pub struct WebOutputs {
pub logs: Vec<String>,
pub last_buffer: Option<Buffer>,
pub last_patches: Vec<WebPatchRun>,
pub last_patch_stats: Option<WebPatchStats>,
pub last_patch_hash: Option<String>,
pub last_full_repaint_hint: bool,
/* private fields */
}Expand description
Captured presentation outputs for host consumption.
Fields§
§logs: Vec<String>Log lines written by the runtime.
last_buffer: Option<Buffer>Last fully-rendered buffer presented.
last_patches: Vec<WebPatchRun>Last emitted incremental/full patch runs in row-major order.
last_patch_stats: Option<WebPatchStats>Aggregate patch upload accounting for the last present.
last_patch_hash: Option<String>Deterministic hash of the last patch batch (lazy — computed on first read).
last_full_repaint_hint: boolWhether the last present requested a full repaint.
Implementations§
Source§impl WebOutputs
impl WebOutputs
Sourcepub fn compute_patch_hash(&mut self) -> Option<&str>
pub fn compute_patch_hash(&mut self) -> Option<&str>
Compute and return the patch hash, caching the result.
The hash is computed lazily on first call and cached for subsequent reads.
Source§impl WebOutputs
impl WebOutputs
Sourcepub fn flatten_patches_u32(&self) -> WebFlatPatchBatch
pub fn flatten_patches_u32(&self) -> WebFlatPatchBatch
Flatten patch runs for low-overhead JS/WASM bridge transport.
Cells are emitted as a contiguous u32 payload in:
[bg, fg, glyph, attrs] order. Spans are emitted as u32 pairs:
[offset, len, offset, len, ...].
Trait Implementations§
Source§impl Clone for WebOutputs
impl Clone for WebOutputs
Source§fn clone(&self) -> WebOutputs
fn clone(&self) -> WebOutputs
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WebOutputs
impl Debug for WebOutputs
Source§impl Default for WebOutputs
impl Default for WebOutputs
Source§fn default() -> WebOutputs
fn default() -> WebOutputs
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WebOutputs
impl RefUnwindSafe for WebOutputs
impl Send for WebOutputs
impl Sync for WebOutputs
impl Unpin for WebOutputs
impl UnsafeUnpin for WebOutputs
impl UnwindSafe for WebOutputs
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