pub enum OptionSetError {
OptionNotSupported,
OptionIsReadOnly,
CouldNotSetOption(Rs2Exception, String),
}
Expand description
Occur when an option cannot be set.
Variants§
OptionNotSupported
The requested option is not supported by this sensor.
OptionIsReadOnly
The requested option is read-only and cannot be set.
CouldNotSetOption(Rs2Exception, String)
The requested option could not be set. Reason is reported by the sensor.
Trait Implementations§
Source§impl Debug for OptionSetError
impl Debug for OptionSetError
Source§impl Display for OptionSetError
impl Display for OptionSetError
Source§impl Error for OptionSetError
impl Error for OptionSetError
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 OptionSetError
impl RefUnwindSafe for OptionSetError
impl Send for OptionSetError
impl Sync for OptionSetError
impl Unpin for OptionSetError
impl UnwindSafe for OptionSetError
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