pub struct Frame<'a> {
pub coded_width: u32,
pub coded_height: u32,
pub visible_rect: Rect,
pub format: Option<Format>,
pub storage: Storage,
pub acquire_sync: AcquireSync,
pub lease: Option<Lease<'a>>,
}Fields§
§coded_width: u32§coded_height: u32§visible_rect: Rect§format: Option<Format>§storage: Storage§acquire_sync: AcquireSync§lease: Option<Lease<'a>>Implementations§
Source§impl Frame<'_>
impl Frame<'_>
Sourcepub fn prepare_cloexec(
&self,
dispatcher: &ResourceArc<ReleaseDispatcher>,
) -> Result<PreparedVideoFrame, PrepareError>
pub fn prepare_cloexec( &self, dispatcher: &ResourceArc<ReleaseDispatcher>, ) -> Result<PreparedVideoFrame, PrepareError>
Validates and owns the frame storage while leaving any lease release
ownership with the Elixir caller. Binary bytes are copied; borrowed file
descriptors are duplicated with CLOEXEC.
For borrowed storage, the entire abandonment authority envelope is saved
opaquely. Call PreparedVideoFrame::claim only after the native
subsystem has accepted responsibility for eventual retirement. Owned
binary storage has no lease to transfer.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Frame<'a>
impl<'a> RefUnwindSafe for Frame<'a>
impl<'a> Send for Frame<'a>
impl<'a> Sync for Frame<'a>
impl<'a> Unpin for Frame<'a>
impl<'a> UnsafeUnpin for Frame<'a>
impl<'a> UnwindSafe for Frame<'a>
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