Enum realsense_rust::frame::FrameConstructionError[][src]

pub enum FrameConstructionError {
    CouldNotGetWidth(Rs2ExceptionString),
    CouldNotGetHeight(Rs2ExceptionString),
    CouldNotGetStride(Rs2ExceptionString),
    CouldNotGetBitsPerPixel(Rs2ExceptionString),
    CouldNotGetTimestamp(Rs2ExceptionString),
    CouldNotGetTimestampDomain(Rs2ExceptionString),
    CouldNotGetFrameStreamProfile(Rs2ExceptionString),
    CouldNotGetDataSize(Rs2ExceptionString),
    CouldNotGetData(Rs2ExceptionString),
    CouldNotGetPointCount(Rs2ExceptionString),
}
Expand description

Occurs when a frame type cannot be constructed from the given data.

Variants

CouldNotGetWidth(Rs2ExceptionString)

Could not get frame width.

CouldNotGetHeight(Rs2ExceptionString)

Could not get frame height.

CouldNotGetStride(Rs2ExceptionString)

Could not get the pixel stride.

CouldNotGetBitsPerPixel(Rs2ExceptionString)

Could not get the bit count per pixel.

CouldNotGetTimestamp(Rs2ExceptionString)

Could not get the frame timestamp.

CouldNotGetTimestampDomain(Rs2ExceptionString)

Could not get the frame timestamp’s time domain, e.g. to which clock its time is relative.

CouldNotGetFrameStreamProfile(Rs2ExceptionString)

Could not get the stream profile that describes the frame.

CouldNotGetDataSize(Rs2ExceptionString)

Could not get the total data size of the frame in bytes.

CouldNotGetData(Rs2ExceptionString)

Could not get the data of the frame.

CouldNotGetPointCount(Rs2ExceptionString)

Could not get the number of points in a Points frame.

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.