pub struct Stream<T> {
camera: Arc<dyn CameraImpl>,
stream: T,
}
Expand description
A way to stream buffers
Fields§
§camera: Arc<dyn CameraImpl>
Makes sure that the lock on the camera is being held for the lifetime of the stream, despite that the dmabuf streaming mechanism doesn’t really need anything but the fd. Without this, it would be possible to acquire the same camera again even as the stream exists, as soon as the original camera goes out of scope.
stream: T
Implementations§
source§impl Stream<StreamManual>
impl Stream<StreamManual>
pub fn finish( self, buf: DmaBufProtected, ) -> Result<(), (Error, DmaBufProtected, Self)>
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Stream<T>where
T: Freeze,
impl<T> !RefUnwindSafe for Stream<T>
impl<T> Send for Stream<T>where
T: Send,
impl<T> Sync for Stream<T>where
T: Sync,
impl<T> Unpin for Stream<T>where
T: Unpin,
impl<T> !UnwindSafe for Stream<T>
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