pub enum ControlValueError {
InvalidType {
expected: u32,
found: u32,
},
UnknownType(u32),
InvalidLength {
expected: usize,
found: usize,
},
UnknownVariant(ControlValue),
}
Variants§
InvalidType
Control value type does not match the one being read/written
UnknownType(u32)
Control value type is not recognized
InvalidLength
Control value dimensionality mismatch
UnknownVariant(ControlValue)
Control value type is correct, but it could not be converted into enum variant
Trait Implementations§
source§impl Debug for ControlValueError
impl Debug for ControlValueError
source§impl Display for ControlValueError
impl Display for ControlValueError
source§impl Error for ControlValueError
impl Error for ControlValueError
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 From<ControlValueError> for ControlError
impl From<ControlValueError> for ControlError
source§fn from(source: ControlValueError) -> Self
fn from(source: ControlValueError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ControlValueError
impl RefUnwindSafe for ControlValueError
impl Send for ControlValueError
impl Sync for ControlValueError
impl Unpin for ControlValueError
impl UnwindSafe for ControlValueError
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