pub struct FramedCanvas {
pub id: String,
pub width: f64,
pub height: f64,
pub source_region: Rect,
pub reference_frame: u32,
pub offset_x: f64,
pub offset_y: f64,
pub tile_count: u64,
pub observed_pixels: u64,
pub provisional_pixels: u64,
}Expand description
A framed canvas the session built: its id and size, where the content sits, and the counters it recomputed from the pixels it copied.
Fields§
§id: String<source id>-framed.
width: f64§height: f64§source_region: RectThe pane of the reference frame the content was seen through.
reference_frame: u32§offset_x: f64Where the source canvas’s origin lands on the framed canvas.
offset_y: f64§tile_count: u64Output tiles that received pixels (and were saved).
observed_pixels: u64§provisional_pixels: u64Trait Implementations§
Source§impl Clone for FramedCanvas
impl Clone for FramedCanvas
Source§impl Debug for FramedCanvas
impl Debug for FramedCanvas
Source§impl PartialEq for FramedCanvas
impl PartialEq for FramedCanvas
impl StructuralPartialEq for FramedCanvas
Auto Trait Implementations§
impl Freeze for FramedCanvas
impl RefUnwindSafe for FramedCanvas
impl Send for FramedCanvas
impl Sync for FramedCanvas
impl Unpin for FramedCanvas
impl UnsafeUnpin for FramedCanvas
impl UnwindSafe for FramedCanvas
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more