pub struct ContentSnapshot {
pub displays: Vec<DisplaySnapshot>,
pub applications: Vec<ApplicationSnapshot>,
pub windows: Vec<WindowSnapshot>,
pub truncation: SnapshotTruncation,
pub string_pool_used: usize,
}Expand description
All shareable content collected in one batched FFI round-trip.
Fields§
§displays: Vec<DisplaySnapshot>§applications: Vec<ApplicationSnapshot>§windows: Vec<WindowSnapshot>§truncation: SnapshotTruncationWhich lists may have been cut short by the scratch-buffer caps.
string_pool_used: usizeBytes of the batch string pool consumed by window titles and application names.
The bridge appends each string greedily and skips any string that
does not fit in the remaining space (surfacing as title: None / an
empty name) rather than partially writing it. Compare against
string_pool_capacity to judge whether
names may have been dropped.
Implementations§
Source§impl ContentSnapshot
impl ContentSnapshot
Sourcepub const fn string_pool_capacity() -> usize
pub const fn string_pool_capacity() -> usize
Total capacity of the batch string pool, in bytes.
Trait Implementations§
Source§impl Clone for ContentSnapshot
impl Clone for ContentSnapshot
Source§fn clone(&self) -> ContentSnapshot
fn clone(&self) -> ContentSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ContentSnapshot
impl Debug for ContentSnapshot
Source§impl Default for ContentSnapshot
impl Default for ContentSnapshot
Source§fn default() -> ContentSnapshot
fn default() -> ContentSnapshot
Returns the “default value” for a type. Read more
impl Eq for ContentSnapshot
Source§impl PartialEq for ContentSnapshot
impl PartialEq for ContentSnapshot
Source§fn eq(&self, other: &ContentSnapshot) -> bool
fn eq(&self, other: &ContentSnapshot) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ContentSnapshot
Auto Trait Implementations§
impl Freeze for ContentSnapshot
impl RefUnwindSafe for ContentSnapshot
impl Send for ContentSnapshot
impl Sync for ContentSnapshot
impl Unpin for ContentSnapshot
impl UnsafeUnpin for ContentSnapshot
impl UnwindSafe for ContentSnapshot
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