pub struct FrameSink { /* private fields */ }Expand description
Bounded frame destination supplied to an application-provided backend.
Implementations§
Source§impl FrameSink
impl FrameSink
Sourcepub fn publish_bytes(
&self,
layout: FrameLayout,
timestamp: Option<SourceTimestamp>,
bytes: &[u8],
) -> CameraResult<bool>
pub fn publish_bytes( &self, layout: FrameLayout, timestamp: Option<SourceTimestamp>, bytes: &[u8], ) -> CameraResult<bool>
Copies one frame into the pool and publishes it to current subscribers.
Returns false when policy or pool pressure intentionally drops the frame.
Sourcepub fn writable(&self, layout: FrameLayout) -> CameraResult<WritableFrameLease>
pub fn writable(&self, layout: FrameLayout) -> CameraResult<WritableFrameLease>
Borrows writable storage directly from the bounded frame pool.
Sourcepub fn disconnect(&self)
pub fn disconnect(&self)
Signal that the physical stream ended unexpectedly. This wakes automatic recovery immediately instead of waiting for the no-frame timeout.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for FrameSink
impl !UnwindSafe for FrameSink
impl Forget for FrameSink
impl Freeze for FrameSink
impl Send for FrameSink
impl Sync for FrameSink
impl Unpin for FrameSink
impl UnsafeUnpin for FrameSink
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