Struct voicemeeter::interface::parameters::DeviceError
source · #[non_exhaustive]pub struct DeviceError {
pub program: VoicemeeterApplication,
pub device: Device,
}
Available on crate feature
interface
only.Expand description
Device is invalid for the current program and parameter
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.program: VoicemeeterApplication
Current program
device: Device
Device that was invalid
Trait Implementations§
source§impl Clone for DeviceError
impl Clone for DeviceError
source§fn clone(&self) -> DeviceError
fn clone(&self) -> DeviceError
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 DeviceError
impl Debug for DeviceError
source§impl Display for DeviceError
impl Display for DeviceError
source§impl Error for DeviceError
impl Error for DeviceError
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<DeviceError> for ParameterError
impl From<DeviceError> for ParameterError
source§fn from(source: DeviceError) -> Self
fn from(source: DeviceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
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