pub enum StreamConstructionError {
CouldNotRetrieveStreamData(Rs2Exception, String),
CouldNotDetermineIsDefault(Rs2Exception, String),
CouldNotGetProfileFromList(Rs2Exception, String),
CouldNotCloneProfile(Rs2Exception, String),
}
Expand description
Type describing errors that can occur when trying to construct a stream profile.
Follows the standard pattern of errors where the enum variant describes what the low-level code was attempting to do while the string carried alongside describes the underlying error message from any C++ exceptions that occur.
Variants§
CouldNotRetrieveStreamData(Rs2Exception, String)
Could not get stream data during construction.
CouldNotDetermineIsDefault(Rs2Exception, String)
Could not determine if this stream is the default stream during construction.
CouldNotGetProfileFromList(Rs2Exception, String)
Could not get the stream profile from the stream profile list.
Usually due to an internal exception of some kind.
CouldNotCloneProfile(Rs2Exception, String)
Could not clone the stream profile after acquiring it from the profile list.
Trait Implementations§
Source§impl Debug for StreamConstructionError
impl Debug for StreamConstructionError
Source§impl Display for StreamConstructionError
impl Display for StreamConstructionError
Source§impl Error for StreamConstructionError
impl Error for StreamConstructionError
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 StreamConstructionError
impl RefUnwindSafe for StreamConstructionError
impl Send for StreamConstructionError
impl Sync for StreamConstructionError
impl Unpin for StreamConstructionError
impl UnwindSafe for StreamConstructionError
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