Enum nokhwa::error::NokhwaError
source · pub enum NokhwaError {
Show 14 variants
UnitializedError,
InitializeError {
backend: ApiBackend,
error: String,
},
ShutdownError {
backend: ApiBackend,
error: String,
},
GeneralError(String),
StructureError {
structure: String,
error: String,
},
OpenDeviceError(String, String),
GetPropertyError {
property: String,
error: String,
},
SetPropertyError {
property: String,
value: String,
error: String,
},
OpenStreamError(String),
ReadFrameError(String),
ProcessFrameError {
src: FrameFormat,
destination: String,
error: String,
},
StreamShutdownError(String),
UnsupportedOperationError(ApiBackend),
NotImplementedError(String),
}
Expand description
All errors in nokhwa
.
Variants§
UnitializedError
InitializeError
ShutdownError
GeneralError(String)
StructureError
OpenDeviceError(String, String)
GetPropertyError
SetPropertyError
OpenStreamError(String)
ReadFrameError(String)
ProcessFrameError
StreamShutdownError(String)
UnsupportedOperationError(ApiBackend)
NotImplementedError(String)
Trait Implementations§
source§impl Clone for NokhwaError
impl Clone for NokhwaError
source§fn clone(&self) -> NokhwaError
fn clone(&self) -> NokhwaError
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 NokhwaError
impl Debug for NokhwaError
source§impl Display for NokhwaError
impl Display for NokhwaError
source§impl Error for NokhwaError
impl Error for NokhwaError
1.30.0 · 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()
Auto Trait Implementations§
impl RefUnwindSafe for NokhwaError
impl Send for NokhwaError
impl Sync for NokhwaError
impl Unpin for NokhwaError
impl UnwindSafe for NokhwaError
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