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
See the BackendSpecificError
docs for more information about this error variant.
Fields
Trait Implementations§
Source§impl Clone for PauseStreamError
impl Clone for PauseStreamError
Source§fn clone(&self) -> PauseStreamError
fn clone(&self) -> PauseStreamError
Returns a duplicate 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 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)>
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<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.
Source§impl From<Error> for PauseStreamError
impl From<Error> for PauseStreamError
Source§impl Hash for PauseStreamError
impl Hash for PauseStreamError
Source§impl PartialEq for PauseStreamError
impl PartialEq for PauseStreamError
impl Eq for PauseStreamError
impl StructuralPartialEq for PauseStreamError
Auto Trait Implementations§
impl Freeze for PauseStreamError
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