pub enum WasapiRendererError {
Windows(Error),
DeviceInvalidated,
NotRenderDevice(WasapiDeviceKind),
UnsupportedMixFormat {
format_tag: u32,
bits: u16,
},
FormatMismatch {
expected: AudioFormat,
actual: AudioFormat,
},
TruncatedFrame,
UnsupportedBuffer(&'static str),
PlaybackClock(PlaybackClockError),
PlaybackClockBoundAfterStart,
PlaybackClockAlreadyBound,
MissingPts,
InvalidClockFrequency(u64),
}Available on Windows and crate feature
wasapi-renderer and (crate features d3d11 or d3d12 or wasapi-renderer) only.Variants§
Windows(Error)
DeviceInvalidated
NotRenderDevice(WasapiDeviceKind)
UnsupportedMixFormat
FormatMismatch
TruncatedFrame
UnsupportedBuffer(&'static str)
PlaybackClock(PlaybackClockError)
PlaybackClockBoundAfterStart
PlaybackClockAlreadyBound
MissingPts
InvalidClockFrequency(u64)
Trait Implementations§
Source§impl Debug for WasapiRendererError
impl Debug for WasapiRendererError
Source§impl Display for WasapiRendererError
impl Display for WasapiRendererError
Source§impl Error for WasapiRendererError
impl Error for WasapiRendererError
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 WasapiRendererError
impl From<Error> for WasapiRendererError
Source§impl From<PlaybackClockError> for WasapiRendererError
impl From<PlaybackClockError> for WasapiRendererError
Source§fn from(source: PlaybackClockError) -> Self
fn from(source: PlaybackClockError) -> Self
Converts to this type from the input type.
Source§impl From<WasapiRendererError> for Error
impl From<WasapiRendererError> for Error
Source§fn from(source: WasapiRendererError) -> Self
fn from(source: WasapiRendererError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WasapiRendererError
impl RefUnwindSafe for WasapiRendererError
impl Send for WasapiRendererError
impl Sync for WasapiRendererError
impl Unpin for WasapiRendererError
impl UnsafeUnpin for WasapiRendererError
impl UnwindSafe for WasapiRendererError
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