#[non_exhaustive]pub struct MetalOwnedTextureFrame {
pub generation: u64,
pub width: u32,
pub height: u32,
pub scale_factor: f64,
pub frame_id: u64,
pub pixel_format: u64,
}Expand description
Copied metadata for an acquired Metal session-owned texture frame.
Backend pointers are exposed by MetalOwnedTextureFrameHandle so their
lifetime stays tied to the open frame handle.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.generation: u64§width: u32§height: u32§scale_factor: f64§frame_id: u64§pixel_format: u64Trait Implementations§
Source§impl Clone for MetalOwnedTextureFrame
impl Clone for MetalOwnedTextureFrame
Source§fn clone(&self) -> MetalOwnedTextureFrame
fn clone(&self) -> MetalOwnedTextureFrame
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MetalOwnedTextureFrame
impl Debug for MetalOwnedTextureFrame
Source§impl PartialEq for MetalOwnedTextureFrame
impl PartialEq for MetalOwnedTextureFrame
impl Copy for MetalOwnedTextureFrame
impl StructuralPartialEq for MetalOwnedTextureFrame
Auto Trait Implementations§
impl Freeze for MetalOwnedTextureFrame
impl RefUnwindSafe for MetalOwnedTextureFrame
impl Send for MetalOwnedTextureFrame
impl Sync for MetalOwnedTextureFrame
impl Unpin for MetalOwnedTextureFrame
impl UnsafeUnpin for MetalOwnedTextureFrame
impl UnwindSafe for MetalOwnedTextureFrame
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