pub struct Frame {
pub surface: SurfaceId,
pub sequence: u64,
pub width: u32,
pub height: u32,
pub base_color: [f32; 4],
pub full: bool,
pub damage: Vec<Rect>,
pub scroll_copies: Vec<ScrollCopy>,
pub layers: Vec<LayerUpdate>,
pub order: Option<Vec<LayerId>>,
pub backdrops: Vec<Backdrop>,
}Expand description
A frame record, decoded.
Fields§
§surface: SurfaceId§sequence: u64§width: u32§height: u32§base_color: [f32; 4]§full: bool§damage: Vec<Rect>§scroll_copies: Vec<ScrollCopy>§layers: Vec<LayerUpdate>§order: Option<Vec<LayerId>>§backdrops: Vec<Backdrop>Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Frame
impl !UnwindSafe for Frame
impl Forget for Frame
impl Freeze for Frame
impl Move for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnsafeUnpin for Frame
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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