pub struct WritableFrameLease { /* private fields */ }Expand description
Writable storage borrowed directly from the framework’s bounded frame pool.
commit makes it immutable and visible to subscribers; dropping it returns
the slot to the pool without publishing.
Implementations§
Source§impl WritableFrameLease
impl WritableFrameLease
Sourcepub fn bytes_mut(&mut self) -> &mut [u8] ⓘ
pub fn bytes_mut(&mut self) -> &mut [u8] ⓘ
Returns the exact frame payload slice described by the requested layout.
Sourcepub fn timestamp(self, timestamp: SourceTimestamp) -> Self
pub fn timestamp(self, timestamp: SourceTimestamp) -> Self
Attaches the backend’s source timestamp to this frame.
Sourcepub fn commit(self) -> CameraResult<bool>
pub fn commit(self) -> CameraResult<bool>
Makes the completed frame immutable and visible to subscribers.
Auto Trait Implementations§
impl !RefUnwindSafe for WritableFrameLease
impl !UnwindSafe for WritableFrameLease
impl Forget for WritableFrameLease
impl Freeze for WritableFrameLease
impl Send for WritableFrameLease
impl Sync for WritableFrameLease
impl Unpin for WritableFrameLease
impl UnsafeUnpin for WritableFrameLease
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