Type Alias vidi::pipelines::StreamBorrowing
source · pub type StreamBorrowing = Stream<Stream>;
Aliased Type§
struct StreamBorrowing {
camera: Arc<dyn CameraImpl>,
stream: Stream,
}
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: Stream