pub struct CompositeFrame { /* private fields */ }Expand description
Holds the raw data pointer from an RS2 Composite frame type.
Implementations§
Source§impl CompositeFrame
impl CompositeFrame
Sourcepub fn count(&self) -> usize
pub fn count(&self) -> usize
Gets the number of individual frames included in the composite frame.
Sourcepub fn frames_of_type<F>(&self) -> Vec<F>
pub fn frames_of_type<F>(&self) -> Vec<F>
Retrieves all frames in the Composite frame collection of a given type.
§Generic Arguments
F must implement FrameCategory. Some examples of good types to use for this are:
Sourcepub unsafe fn get_owned_raw(self) -> NonNull<rs2_frame>
pub unsafe fn get_owned_raw(self) -> NonNull<rs2_frame>
Get (and own) the underlying frame pointer for this frame.
This is primarily useful for passing this frame forward to a processing block or blocks (either via frame queue, directly, callback, etc).
§Safety
This does not destroy the underlying frame pointer once self goes out of scope. Instead, the program expects that whatever object was assigned to by this function now manages the lifetime.
Trait Implementations§
Source§impl Debug for CompositeFrame
impl Debug for CompositeFrame
Source§impl Drop for CompositeFrame
impl Drop for CompositeFrame
impl Send for CompositeFrame
Auto Trait Implementations§
impl Freeze for CompositeFrame
impl RefUnwindSafe for CompositeFrame
impl !Sync for CompositeFrame
impl Unpin for CompositeFrame
impl UnwindSafe for CompositeFrame
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