[−][src]Struct realsense_rust::frame::Frame
Represents a collection of sensor data.
Methods
impl Frame<Any>
[src]
pub fn is_extendable_to(&self, extension: Extension) -> RsResult<bool>
[src]
pub fn try_extend_to<Kind>(self) -> RsResult<Result<Frame<Kind>, Self>> where
Kind: NonAnyFrameKind,
[src]
Kind: NonAnyFrameKind,
pub fn try_extend(self) -> RsResult<ExtendedFrame>
[src]
impl Frame<Composite>
[src]
pub fn len(&self) -> RsResult<usize>
[src]
Gets the number of frames included in the composite frame.
pub fn get(&self, index: usize) -> RsResult<Option<Frame<Any>>>
[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) -> RsResult<CompositeFrameIntoIter>
[src]
Unpacks the set of frames and turns into iterable CompositeFrameIntoIter instance.
impl Frame<Pose>
[src]
impl Frame<Points>
[src]
pub fn vertices<'a>(&'a self) -> RsResult<&'a [rs2_vertex]>
[src]
Gets vertices of point cloud.
pub fn texture_coordinates<'a>(&'a self) -> RsResult<&'a [rs2_pixel]>
[src]
Gets texture coordinates of each point of point cloud.
pub fn points_count(&self) -> RsResult<usize>
[src]
Gets number of points in frame.
impl Frame<Motion>
[src]
pub fn motion_data(&self) -> RsResult<Vector3<f32>>
[src]
Gets motion data.
Trait Implementations
impl<Kind: Debug> Debug for Frame<Kind> where
Kind: FrameKind,
[src]
Kind: FrameKind,
impl DepthFrame for Frame<Depth>
[src]
fn distance(&self, x: usize, y: usize) -> RsResult<f32>
[src]
fn depth_units(&self) -> RsResult<f32>
[src]
impl DepthFrame for Frame<Disparity>
[src]
fn distance(&self, x: usize, y: usize) -> RsResult<f32>
[src]
fn depth_units(&self) -> RsResult<f32>
[src]
impl DisparityFrame for Frame<Disparity>
[src]
impl<Kind> Drop for Frame<Kind> where
Kind: FrameKind,
[src]
Kind: FrameKind,
impl<Kind> GenericFrame for Frame<Kind> where
Kind: FrameKind,
[src]
Kind: FrameKind,
fn ptr(&self) -> NonNull<rs2_frame>
[src]
unsafe fn take(self) -> NonNull<rs2_frame>
[src]
unsafe fn from_ptr(ptr: NonNull<rs2_frame>) -> Self
[src]
fn metadata(&self, kind: FrameMetaDataValue) -> RsResult<u64>
[src]
fn number(&self) -> RsResult<u64>
[src]
fn data_size(&self) -> RsResult<usize>
[src]
fn timestamp(&self) -> RsResult<f64>
[src]
fn timestamp_domain(&self) -> RsResult<TimestampDomain>
[src]
fn data(&self) -> RsResult<&[u8]>
[src]
fn sensor(&self) -> RsResult<Sensor<Any>>
[src]
fn stream_profile(&self) -> RsResult<StreamProfile>
[src]
impl IntoIterator for Frame<Composite>
[src]
type Item = RsResult<Frame<Any>>
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 Err.
impl<Kind> Send for Frame<Kind> where
Kind: FrameKind,
[src]
Kind: FrameKind,
impl<Kind> Sync for Frame<Kind> where
Kind: FrameKind,
[src]
Kind: FrameKind,
impl VideoFrame for Frame<Video>
[src]
fn resolution(&self) -> RsResult<Resolution>
[src]
fn width(&self) -> RsResult<usize>
[src]
fn height(&self) -> RsResult<usize>
[src]
fn stride_in_bytes(&self) -> RsResult<usize>
[src]
fn bits_per_pixel(&self) -> RsResult<usize>
[src]
fn image(&self) -> RsResult<Rs2Image>
[src]
impl VideoFrame for Frame<Depth>
[src]
fn resolution(&self) -> RsResult<Resolution>
[src]
fn width(&self) -> RsResult<usize>
[src]
fn height(&self) -> RsResult<usize>
[src]
fn stride_in_bytes(&self) -> RsResult<usize>
[src]
fn bits_per_pixel(&self) -> RsResult<usize>
[src]
fn image(&self) -> RsResult<Rs2Image>
[src]
impl VideoFrame for Frame<Disparity>
[src]
Auto Trait Implementations
impl<Kind> RefUnwindSafe for Frame<Kind> where
Kind: RefUnwindSafe,
Kind: RefUnwindSafe,
impl<Kind> Unpin for Frame<Kind> where
Kind: Unpin,
Kind: Unpin,
impl<Kind> UnwindSafe for Frame<Kind> where
Kind: UnwindSafe,
Kind: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<I> IntoIterator for I where
I: Iterator,
[src]
I: Iterator,
type Item = <I as Iterator>::Item
The type of the elements being iterated over.
type IntoIter = I
Which kind of iterator are we turning this into?
fn into_iter(self) -> I
[src]
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,