Struct realsense_rust::frame::CompositeFrame [−][src]
Expand description
Holds the raw data pointer from an RS2 Composite frame type.
Fields
ptr: NonNull<rs2_frame>
The raw data pointer from the original rs2 frame
Implementations
Gets the number of individual frames included in the composite frame.
pub fn frames_of_type<F>(&self) -> Vec<F> where
F: TryFrom<NonNull<rs2_frame>> + FrameCategory,
pub fn frames_of_type<F>(&self) -> Vec<F> where
F: TryFrom<NonNull<rs2_frame>> + FrameCategory,
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:
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for CompositeFrame
impl !Send for CompositeFrame
impl !Sync for CompositeFrame
impl Unpin for CompositeFrame
impl UnwindSafe for CompositeFrame