Struct realsense_rust::frame::Frame[][src]

pub struct Frame<Kind> where
    Kind: FrameKind
{ /* fields omitted */ }

Represents a collection of sensor data.

Implementations

impl Frame<Any>[src]

pub fn is_extendable_to<Kind>(&self) -> Result<bool> where
    Kind: NonAnyFrameKind
[src]

pub fn try_extend_to<Kind>(self) -> Result<Result<Frame<Kind>, Self>> where
    Kind: NonAnyFrameKind
[src]

pub fn try_extend(self) -> Result<ExtendedFrame>[src]

impl Frame<Composite>[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]

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]

impl Frame<Pose>[src]

pub fn pose(&self) -> Result<PoseData>[src]

Gets the pose data.

impl Frame<Points>[src]

pub fn vertices<'a>(&'a self) -> Result<&'a [rs2_vertex]>[src]

Gets vertices of point cloud.

pub fn texture_coordinates<'a>(&'a self) -> Result<&'a [TextureCoordinate]>[src]

Gets texture coordinates of each point of point cloud.

pub fn points_count(&self) -> Result<usize>[src]

Gets number of points in frame.

impl Frame<Motion>[src]

pub fn motion(&self) -> Result<[f32; 3]>[src]

Gets motion data.

Trait Implementations

impl<Kind> Clone for Frame<Kind> where
    Kind: FrameKind
[src]

impl<Kind: Debug> Debug for Frame<Kind> where
    Kind: FrameKind
[src]

impl<Kind> Drop for Frame<Kind> where
    Kind: FrameKind
[src]

impl<Kind> GenericFrameEx for Frame<Kind> where
    Kind: FrameKind
[src]

impl<Kind> Send for Frame<Kind> where
    Kind: FrameKind
[src]

impl<Kind> Sync for Frame<Kind> where
    Kind: FrameKind
[src]

Auto Trait Implementations

impl<Kind> RefUnwindSafe for Frame<Kind> where
    Kind: RefUnwindSafe

impl<Kind> Unpin for Frame<Kind> where
    Kind: Unpin

impl<Kind> UnwindSafe for Frame<Kind> where
    Kind: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,