pub struct Frame { /* private fields */ }Implementations§
Source§impl Frame
impl Frame
pub fn new(buffer: Vec<u8>) -> Self
pub fn is_complete(&self) -> bool
pub fn width(&self) -> u32
pub fn height(&self) -> u32
pub fn buffer_size(&self) -> usize
pub fn buffer(&self) -> &[u8] ⓘ
pub fn frame_id(&self) -> u64
pub fn timestamp(&self) -> u64
pub fn pixel_format(&self) -> Result<PixFmt>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Frame
impl RefUnwindSafe for Frame
impl !Sync for Frame
impl Unpin for Frame
impl UnsafeUnpin for Frame
impl UnwindSafe 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