pub struct Frame {
pub width: u32,
pub height: u32,
pub timestamp: i64,
/* private fields */
}Fields§
§width: u32§height: u32§timestamp: i64Implementations§
Source§impl Frame
impl Frame
pub fn packed( width: u32, height: u32, timestamp: i64, bytes: Vec<u8>, format: PixelFormat, ) -> Option<Self>
pub fn native( width: u32, height: u32, timestamp: i64, format: PixelFormat, source: Arc<dyn NativeFrame>, ) -> Self
pub fn texture(&self, context: &Context) -> Result<Texture, String>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Frame
impl !UnwindSafe for Frame
impl Forget for Frame
impl Freeze for Framewhere
*const ArcInner<[u8]> is !null: Freeze,
PhantomData<ArcInner<[u8]>>: Freeze,
*const ArcInner<dyn NativeFrame> is !null: Freeze,
PhantomData<ArcInner<dyn NativeFrame>>: Freeze,
impl Move for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnsafeUnpin for Framewhere
*const ArcInner<[u8]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[u8]>>: UnsafeUnpin,
*const ArcInner<dyn NativeFrame> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn NativeFrame>>: UnsafeUnpin,
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