#[non_exhaustive]pub enum InvalidTypeError {
ExpectedPhysical {
name: &'static str,
strip_index: ZIndex,
parameter: String,
},
ExpectedVirtual {
name: &'static str,
strip_index: ZIndex,
parameter: String,
},
ExpectedStrip {
device: String,
},
ExpectedBus {
device: String,
},
}Available on crate feature
interface only.Expand description
Invalid strip/bus type for a specific parameter
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.
ExpectedPhysical
Expected Physical
Fields
ExpectedVirtual
Expected Virtual
Fields
ExpectedStrip
Expected Strip
ExpectedBus
Expected Bus
Trait Implementations§
Source§impl Clone for InvalidTypeError
impl Clone for InvalidTypeError
Source§fn clone(&self) -> InvalidTypeError
fn clone(&self) -> InvalidTypeError
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 InvalidTypeError
impl Debug for InvalidTypeError
Source§impl Display for InvalidTypeError
impl Display for InvalidTypeError
Source§impl Error for InvalidTypeError
impl Error for InvalidTypeError
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<InvalidTypeError> for ParameterError
impl From<InvalidTypeError> for ParameterError
Source§fn from(source: InvalidTypeError) -> Self
fn from(source: InvalidTypeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InvalidTypeError
impl RefUnwindSafe for InvalidTypeError
impl Send for InvalidTypeError
impl Sync for InvalidTypeError
impl Unpin for InvalidTypeError
impl UnwindSafe for InvalidTypeError
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