Struct realsense_rust::frame::Frame [−][src]
Represents a collection of sensor data.
Implementations
impl Frame<Any>
[src]
pub fn is_extendable_to<Kind>(&self) -> Result<bool> where
Kind: NonAnyFrameKind,
[src]
Kind: NonAnyFrameKind,
pub fn try_extend_to<Kind>(self) -> Result<Result<Frame<Kind>, Self>> where
Kind: NonAnyFrameKind,
[src]
Kind: NonAnyFrameKind,
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]
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]
impl Frame<Pose>
[src]
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]
Trait Implementations
impl<Kind> Clone for Frame<Kind> where
Kind: FrameKind,
[src]
Kind: FrameKind,
fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<Kind: Debug> Debug for Frame<Kind> where
Kind: FrameKind,
[src]
Kind: FrameKind,
impl<Kind> Drop for Frame<Kind> where
Kind: FrameKind,
[src]
Kind: FrameKind,
impl<Kind> GenericFrameEx for Frame<Kind> where
Kind: FrameKind,
[src]
Kind: FrameKind,
fn ptr(&self) -> NonNull<rs2_frame>
[src]
fn into_raw(self) -> *mut rs2_frame
[src]
unsafe fn from_raw(ptr: *mut rs2_frame) -> Self
[src]
fn metadata(&self, kind: FrameMetaDataValue) -> Result<u64>
[src]
fn number(&self) -> Result<u64>
[src]
fn data_size(&self) -> Result<usize>
[src]
fn timestamp(&self) -> Result<f64>
[src]
fn timestamp_domain(&self) -> Result<TimestampDomain>
[src]
fn data(&self) -> Result<&[u8]>
[src]
fn sensor(&self) -> Result<AnySensor>
[src]
fn stream_profile(&self) -> Result<AnyStreamProfile>
[src]
fn try_clone(&self) -> Result<Self>
[src]
impl<Kind> Send for Frame<Kind> where
Kind: FrameKind,
[src]
Kind: FrameKind,
impl<Kind> Sync for Frame<Kind> where
Kind: FrameKind,
[src]
Kind: FrameKind,
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,
pub 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<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
pub fn is_in_subset(&self) -> bool
pub fn to_subset_unchecked(&self) -> SS
pub fn from_subset(element: &SS) -> SP
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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.
pub 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>,