Enum cameleon::CameleonError
source · pub enum CameleonError {
ControlError(ControlError),
StreamError(StreamError),
GenApiContextMissing,
InvalidGenApiXml(Cow<'static, str>),
GenApiError(GenApiError),
}
Expand description
An error type returned from the camera::Camera
.
Variants§
ControlError(ControlError)
An error from device control.
StreamError(StreamError)
An error from payload stream.
GenApiContextMissing
GenApi
context is not laoded yet.
InvalidGenApiXml(Cow<'static, str>)
GenApi
xml doesn’t meet GenApi SFNC
specification.
GenApiError(GenApiError)
An error when GenApi
node operation failed.
Trait Implementations§
source§impl Debug for CameleonError
impl Debug for CameleonError
source§impl Display for CameleonError
impl Display for CameleonError
source§impl Error for CameleonError
impl Error for CameleonError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 From<ControlError> for CameleonError
impl From<ControlError> for CameleonError
source§fn from(source: ControlError) -> Self
fn from(source: ControlError) -> Self
Converts to this type from the input type.
source§impl From<GenApiError> for CameleonError
impl From<GenApiError> for CameleonError
source§fn from(source: GenApiError) -> Self
fn from(source: GenApiError) -> Self
Converts to this type from the input type.
source§impl From<StreamError> for CameleonError
impl From<StreamError> for CameleonError
source§fn from(source: StreamError) -> Self
fn from(source: StreamError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for CameleonError
impl Send for CameleonError
impl Sync for CameleonError
impl Unpin for CameleonError
impl !UnwindSafe for CameleonError
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