pub struct Snapshot {
pub v: u8,
pub session_id: String,
pub revision: i64,
pub columns: i64,
pub rows: i64,
pub cursor: Option<Cursor>,
pub root_ids: Vec<String>,
pub nodes: Vec<Node>,
pub coordinate_space: Option<Observation<String>>,
pub hit_grid: Option<Observation<PointerHitGrid>>,
}Expand description
The whole tree for one committed render.
Fields§
§v: u8Snapshot format version; always 1.
session_id: StringSession this snapshot belongs to.
revision: i64Render revision, strictly increasing per session.
columns: i64Viewport width in cells.
rows: i64Viewport height in cells.
cursor: Option<Cursor>Cursor position, when the app reports one.
root_ids: Vec<String>Ids of the parentless nodes, in document order.
nodes: Vec<Node>Every node in the tree.
coordinate_space: Option<Observation<String>>Qualified coordinate space for all known geometry in protocol v2.
hit_grid: Option<Observation<PointerHitGrid>>Exact fresh-pointer ownership map for protocol v2, when supported.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Snapshot
impl<'de> Deserialize<'de> for Snapshot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Snapshot
impl StructuralPartialEq for Snapshot
Auto Trait Implementations§
impl Freeze for Snapshot
impl RefUnwindSafe for Snapshot
impl Send for Snapshot
impl Sync for Snapshot
impl Unpin for Snapshot
impl UnsafeUnpin for Snapshot
impl UnwindSafe for Snapshot
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