Struct webrender::screen_capture::AsyncScreenshot
source · struct AsyncScreenshot {
pbo: PBO,
screenshot_size: DeviceIntSize,
buffer_stride: usize,
image_format: ImageFormat,
}
Expand description
An asynchronously captured screenshot bound to a PBO which has not yet been mapped for copying.
Fields§
§pbo: PBO
The PBO that will contain the screenshot data.
screenshot_size: DeviceIntSize
The size of the screenshot.
buffer_stride: usize
The stride of the data in the PBO.
image_format: ImageFormat
Thge image format of the screenshot.
Auto Trait Implementations§
impl Freeze for AsyncScreenshot
impl RefUnwindSafe for AsyncScreenshot
impl Send for AsyncScreenshot
impl Sync for AsyncScreenshot
impl Unpin for AsyncScreenshot
impl UnwindSafe for AsyncScreenshot
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> 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