pub enum SinkError {
NoDevice,
UnsupportedConfig {
requested: SinkConfig,
supported: Option<SinkConfig>,
},
InvalidConfig(&'static str),
AlreadyStarted,
Backend(String),
}Expand description
Why a sink could not start.
Variants§
NoDevice
There is no output device (or the audio server is not running).
UnsupportedConfig
The device cannot do the requested format. supported is what AudioSink::default_config reports, to retry with.
InvalidConfig(&'static str)
The request is not valid (zero rate or channels).
AlreadyStarted
The sink is already running; stop it (drop its handle) first.
Backend(String)
The backend failed. The text is its own message.
Trait Implementations§
impl Eq for SinkError
Source§impl Error for SinkError
impl Error for SinkError
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()
impl StructuralPartialEq for SinkError
Auto Trait Implementations§
impl Forget for SinkError
impl Freeze for SinkError
impl Move for SinkError
impl RefUnwindSafe for SinkError
impl Send for SinkError
impl Sync for SinkErrorwhere
RawVecInner: Sync,
impl Unpin for SinkError
impl UnsafeUnpin for SinkError
impl UnwindSafe for SinkError
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