pub enum FrameConstructionError {
CouldNotGetWidth(Rs2Exception, String),
CouldNotGetHeight(Rs2Exception, String),
CouldNotGetStride(Rs2Exception, String),
CouldNotGetBitsPerPixel(Rs2Exception, String),
CouldNotGetTimestamp(Rs2Exception, String),
CouldNotGetTimestampDomain(Rs2Exception, String),
CouldNotGetFrameNumber(Rs2Exception, String),
CouldNotGetFrameStreamProfile(Rs2Exception, String),
CouldNotGetDataSize(Rs2Exception, String),
CouldNotGetData(Rs2Exception, String),
CouldNotGetPointCount(Rs2Exception, String),
}
Expand description
Occurs when a frame type cannot be constructed from the given data.
Variants§
CouldNotGetWidth(Rs2Exception, String)
Could not get frame width.
CouldNotGetHeight(Rs2Exception, String)
Could not get frame height.
CouldNotGetStride(Rs2Exception, String)
Could not get the pixel stride.
CouldNotGetBitsPerPixel(Rs2Exception, String)
Could not get the bit count per pixel.
CouldNotGetTimestamp(Rs2Exception, String)
Could not get the frame timestamp.
CouldNotGetTimestampDomain(Rs2Exception, String)
Could not get the frame timestamp’s time domain, e.g. to which clock its time is relative.
CouldNotGetFrameNumber(Rs2Exception, String)
Could not get the frame number.
CouldNotGetFrameStreamProfile(Rs2Exception, String)
Could not get the stream profile that describes the frame.
CouldNotGetDataSize(Rs2Exception, String)
Could not get the total data size of the frame in bytes.
CouldNotGetData(Rs2Exception, String)
Could not get the data of the frame.
CouldNotGetPointCount(Rs2Exception, String)
Could not get the number of points in a Points frame.
Trait Implementations§
Source§impl Debug for FrameConstructionError
impl Debug for FrameConstructionError
Source§impl Display for FrameConstructionError
impl Display for FrameConstructionError
Source§impl Error for FrameConstructionError
impl Error for FrameConstructionError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for FrameConstructionError
impl RefUnwindSafe for FrameConstructionError
impl Send for FrameConstructionError
impl Sync for FrameConstructionError
impl Unpin for FrameConstructionError
impl UnwindSafe for FrameConstructionError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more