pub enum GenCamError {
Show 23 variants
Message(String),
AccessViolation,
InvalidIndex(i32),
InvalidId(i32),
InvalidControlType(String),
NoCamerasAvailable,
CameraClosed,
CameraRemoved,
InvalidPath(String),
InvalidFormat(String),
InvalidSize(usize),
InvalidImageType(String),
TimedOut,
InvalidSequence,
BufferTooSmall(usize),
ExposureInProgress,
GeneralError(String),
InvalidMode(String),
ExposureFailed(String),
InvalidValue(String),
OutOfBounds(String),
ExposureNotStarted,
PropertyError {
control: GenCamCtrl,
error: PropertyError,
},
}
Expand description
Errors returned by camera operations.
Variants§
Message(String)
Error message.
AccessViolation
Access violation.
InvalidIndex(i32)
Invalid index.
InvalidId(i32)
Invalid ID.
InvalidControlType(String)
Invalid control type.
NoCamerasAvailable
No cameras available.
CameraClosed
Camera not open for access.
CameraRemoved
Camera already removed.
InvalidPath(String)
Invalid path.
InvalidFormat(String)
Invalid format.
InvalidSize(usize)
Invalid size.
InvalidImageType(String)
Invalid image type.
TimedOut
Operation timed out.
InvalidSequence
Invalid sequence.
BufferTooSmall(usize)
Buffer too small.
ExposureInProgress
Exposure in progress.
GeneralError(String)
General error.
InvalidMode(String)
Invalid mode.
ExposureFailed(String)
Exposure failed.
InvalidValue(String)
Invalid value.
OutOfBounds(String)
Out of bounds.
ExposureNotStarted
Exposure not started.
PropertyError
Property related error.
Fields
§
control: GenCamCtrl
The control that caused the error.
§
error: PropertyError
The error message.
Trait Implementations§
source§impl Clone for GenCamError
impl Clone for GenCamError
source§fn clone(&self) -> GenCamError
fn clone(&self) -> GenCamError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for GenCamError
impl Debug for GenCamError
source§impl<'de> Deserialize<'de> for GenCamError
impl<'de> Deserialize<'de> for GenCamError
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for GenCamError
impl Display for GenCamError
source§impl Error for GenCamError
impl Error for GenCamError
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()
source§impl PartialEq for GenCamError
impl PartialEq for GenCamError
source§impl Serialize for GenCamError
impl Serialize for GenCamError
impl StructuralPartialEq for GenCamError
Auto Trait Implementations§
impl Freeze for GenCamError
impl RefUnwindSafe for GenCamError
impl Send for GenCamError
impl Sync for GenCamError
impl Unpin for GenCamError
impl UnwindSafe for GenCamError
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)