Enum cpal::PauseStreamError
source · pub enum PauseStreamError {
DeviceNotAvailable,
BackendSpecific {
err: BackendSpecificError,
},
}
Expand description
Errors that might occur when calling Stream::pause()
.
As of writing this, only macOS may immediately return an error while calling this method. This is because both the alsa and wasapi backends only enqueue these commands and do not process them immediately.
Variants§
DeviceNotAvailable
The device associated with the stream is no longer available.
BackendSpecific
Fields
See the BackendSpecificError
docs for more information about this error variant.
Trait Implementations§
source§impl Debug for PauseStreamError
impl Debug for PauseStreamError
source§impl Display for PauseStreamError
impl Display for PauseStreamError
source§impl Error for PauseStreamError
impl Error for PauseStreamError
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<BackendSpecificError> for PauseStreamError
impl From<BackendSpecificError> for PauseStreamError
source§fn from(err: BackendSpecificError) -> Self
fn from(err: BackendSpecificError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for PauseStreamError
impl Send for PauseStreamError
impl Sync for PauseStreamError
impl Unpin for PauseStreamError
impl UnwindSafe for PauseStreamError
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