[−][src]Type Definition realsense_rust::frame::CompositeFrame
type CompositeFrame = Frame<Composite>;
Implementations
impl CompositeFrame
[src]
pub fn len(&self) -> Result<usize>
[src]
Gets the number of frames included in the composite frame.
pub fn is_empty(&self) -> Result<bool>
[src]
Checks if the composite-frame contains no sub-frames.
pub fn get(&self, index: usize) -> Result<Option<AnyFrame>>
[src]
Gets the frame in frameset by index.
The method throws error if index is out of bound given by Frame::len.
pub fn try_into_iter(self) -> Result<CompositeFrameIntoIter>
[src]
Unpacks the set of frames and turns into iterable CompositeFrameIntoIter instance.
pub fn try_iter(&self) -> Result<CompositeFrameIter>
[src]
pub fn first_of<Kind>(&self, stream: StreamKind) -> Result<Option<Frame<Kind>>> where
Kind: NonAnyFrameKind,
[src]
Kind: NonAnyFrameKind,
pub fn color_frame(&self) -> Result<Option<VideoFrame>>
[src]
pub fn depth_frame(&self) -> Result<Option<DepthFrame>>
[src]
pub fn pose_frame(&self) -> Result<Option<PoseFrame>>
[src]
Trait Implementations
impl IntoIterator for CompositeFrame
[src]
type Item = Result<AnyFrame>
The type of the elements being iterated over.
type IntoIter = CompositeFrameIntoIter
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
The method internally calls Frame::try_into_iter.
Panics
This method panics if Frame::try_into_iter returns error.