#[non_exhaustive]#[repr(u16)]pub enum DeviceError {
None = 0,
FunctionNotSupported = 1,
InvalidParameters = 2,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None = 0
No error occurred
FunctionNotSupported = 1
Actually, <device(s)> <doesn’t/don’t> support that functionality.
InvalidParameters = 2
Device does not support sent parameters
Trait Implementations§
Source§impl Clone for DeviceError
impl Clone for DeviceError
Source§fn clone(&self) -> DeviceError
fn clone(&self) -> DeviceError
Returns a duplicate 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 DeviceError
impl Debug for DeviceError
Source§impl<'de> Deserialize<'de> for DeviceError
impl<'de> Deserialize<'de> for DeviceError
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 DeviceError
impl Display for DeviceError
Source§impl Distribution<DeviceError> for Standard
impl Distribution<DeviceError> for Standard
Source§fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> DeviceError
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> DeviceError
Generate a random value of
T, using rng as the source of randomness.Source§fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T>
fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T>
Create an iterator that generates random values of
T, using rng as
the source of randomness. Read moreSource§impl IntoEnumIterator for DeviceError
impl IntoEnumIterator for DeviceError
type Iterator = DeviceErrorIter
fn iter() -> DeviceErrorIter ⓘ
Source§impl PartialEq for DeviceError
impl PartialEq for DeviceError
Source§impl Serialize for DeviceError
impl Serialize for DeviceError
Source§impl TryFrom<u16> for DeviceError
impl TryFrom<u16> for DeviceError
impl Eq for DeviceError
impl StructuralPartialEq for DeviceError
Auto Trait Implementations§
impl Freeze for DeviceError
impl RefUnwindSafe for DeviceError
impl Send for DeviceError
impl Sync for DeviceError
impl Unpin for DeviceError
impl UnwindSafe for DeviceError
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