pub enum RenderCommand {
SetImageEncoded {
handle: u64,
bytes: Vec<u8>,
srgb: bool,
},
SetImageRgba8 {
handle: u64,
w: u32,
h: u32,
rgba: Vec<u8>,
srgb: bool,
},
SetImageNv12 {
handle: u64,
w: u32,
h: u32,
y: Vec<u8>,
uv: Vec<u8>,
color_info: ColorInfo,
},
SetImagePlanes {
handle: u64,
w: u32,
h: u32,
pixel_format: PixelFormat,
planes: Vec<Arc<[u8]>>,
color_info: ColorInfo,
},
SetImageDmaBuf {
handle: u64,
w: u32,
h: u32,
fds: Vec<OwnedFd>,
fourcc: u32,
modifier: u64,
strides: Vec<u32>,
offsets: Vec<u64>,
color_info: ColorInfo,
},
RemoveImage {
handle: u64,
},
}Variants§
SetImageEncoded
SetImageRgba8
SetImageNv12
SetImagePlanes
Fields
§
pixel_format: PixelFormatSetImageDmaBuf
Fields
RemoveImage
Trait 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.