Enum voicemeeter::interface::parameters::InvalidTypeError
source · #[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
Fields
Expected Physical
ExpectedVirtual
Fields
Expected Virtual
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 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 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)>
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 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