pub struct MultiSourceCapture { /* private fields */ }Implementations§
Source§impl MultiSourceCapture
impl MultiSourceCapture
Sourcepub fn new() -> Result<Self, Error>
pub fn new() -> Result<Self, Error>
Creates a new MultiSourceCapture instance.
This function initializes the default Kinect sensor, opens it, and sets up the multi-source frame reader.
§Errors
Returns an error if the Kinect sensor cannot be initialized or opened.
Sourcepub fn iter(&self) -> Result<MultiSourceCaptureIter, Error>
pub fn iter(&self) -> Result<MultiSourceCaptureIter, Error>
Returns an iterator over multi-source frames.
The iterator will block waiting for new frames. Each item yielded by
the iterator is a Result<MultiSourceFrameData, Error>, allowing for error
handling during frame acquisition.
§Errors
Returns an error if it fails to subscribe to the frame arrived event, which is necessary for the iterator to function.
Auto Trait Implementations§
impl Freeze for MultiSourceCapture
impl RefUnwindSafe for MultiSourceCapture
impl !Send for MultiSourceCapture
impl !Sync for MultiSourceCapture
impl Unpin for MultiSourceCapture
impl UnwindSafe for MultiSourceCapture
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