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 Frame
impl Move for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnsafeUnpin for Frame
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