pub struct ComposedFrame {
pub bytes: Vec<u8>,
pub width: u32,
pub height: u32,
}Expand description
Result of a single compose tick. bytes is BGRA8 packed
(no row padding) sized exactly width * height * 4.
Fields§
§bytes: Vec<u8>Tightly-packed BGRA8 bytes.
width: u32Frame dimensions in pixels (matches the encoder caps).
height: u32Frame dimensions in pixels.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ComposedFrame
impl RefUnwindSafe for ComposedFrame
impl Send for ComposedFrame
impl Sync for ComposedFrame
impl Unpin for ComposedFrame
impl UnsafeUnpin for ComposedFrame
impl UnwindSafe for ComposedFrame
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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