pub enum RenderCommand {
SetImageEncoded {
handle: ImageHandle,
bytes: Vec<u8>,
srgb: bool,
},
SetImageRgba8 {
handle: ImageHandle,
w: u32,
h: u32,
rgba: Vec<u8>,
srgb: bool,
},
SetImageNv12 {
handle: ImageHandle,
w: u32,
h: u32,
y: Vec<u8>,
uv: Vec<u8>,
color_info: ColorInfo,
},
SetImagePlanes {
handle: ImageHandle,
w: u32,
h: u32,
pixel_format: PixelFormat,
planes: Vec<Arc<[u8]>>,
color_info: ColorInfo,
},
SetImageDmaBuf {
handle: ImageHandle,
w: u32,
h: u32,
fds: Vec<OwnedFd>,
fourcc: u32,
modifier: u64,
strides: Vec<u32>,
offsets: Vec<u64>,
color_info: ColorInfo,
},
RemoveImage {
handle: ImageHandle,
},
}Variants§
SetImageEncoded
SetImageRgba8
SetImageNv12
SetImagePlanes
SetImageDmaBuf
Fields
§
handle: ImageHandleRemoveImage
Fields
§
handle: ImageHandleTrait Implementations§
Auto Trait Implementations§
impl Forget for RenderCommand
impl Freeze for RenderCommandwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Arc<[u8]>>: Freeze,
PhantomData<OwnedFd>: Freeze,
PhantomData<u32>: Freeze,
PhantomData<u64>: Freeze,
impl Move for RenderCommand
impl RefUnwindSafe for RenderCommand
impl Send for RenderCommand
impl Sync for RenderCommand
impl Unpin for RenderCommand
impl UnsafeUnpin for RenderCommandwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Arc<[u8]>>: UnsafeUnpin,
PhantomData<OwnedFd>: UnsafeUnpin,
PhantomData<u32>: UnsafeUnpin,
PhantomData<u64>: UnsafeUnpin,
impl UnwindSafe for RenderCommand
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