pub enum WasapiError {
Show 17 variants
DeviceNotFound(String),
IllegalDeviceState(u32),
IllegalDeviceRole(i32),
IllegalDeviceDirection(i32),
IllegalSessionState(i32),
UnsupportedFormat,
UnsupportedSubformat(GUID),
ClientNotInit,
RegisterNotifications(Error),
DataLengthMismatch {
received: usize,
expected: usize,
},
DataLengthTooShort {
received: usize,
expected: usize,
},
EventTimeout,
AutomaticFormatConversionInExclusiveMode,
LoopbackWithExclusiveMode,
RenderToCaptureDevice,
Windows(Error),
FromUtf16Error(FromUtf16Error),
}Variants§
DeviceNotFound(String)
IllegalDeviceState(u32)
IllegalDeviceRole(i32)
IllegalDeviceDirection(i32)
IllegalSessionState(i32)
UnsupportedFormat
UnsupportedSubformat(GUID)
ClientNotInit
RegisterNotifications(Error)
DataLengthMismatch
DataLengthTooShort
EventTimeout
AutomaticFormatConversionInExclusiveMode
LoopbackWithExclusiveMode
RenderToCaptureDevice
Windows(Error)
FromUtf16Error(FromUtf16Error)
Trait Implementations§
Source§impl Debug for WasapiError
impl Debug for WasapiError
Source§impl Display for WasapiError
impl Display for WasapiError
Source§impl Error for WasapiError
impl Error for WasapiError
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<Error> for WasapiError
impl From<Error> for WasapiError
Source§impl From<FromUtf16Error> for WasapiError
impl From<FromUtf16Error> for WasapiError
Source§fn from(source: FromUtf16Error) -> Self
fn from(source: FromUtf16Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WasapiError
impl RefUnwindSafe for WasapiError
impl Send for WasapiError
impl Sync for WasapiError
impl Unpin for WasapiError
impl UnsafeUnpin for WasapiError
impl UnwindSafe for WasapiError
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