pub enum PlayStreamError {
DeviceNotAvailable,
BackendSpecific {
err: BackendSpecificError,
},
}
Expand description
Errors that might occur when calling Stream::play()
.
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 PlayStreamError
impl Clone for PlayStreamError
Source§fn clone(&self) -> PlayStreamError
fn clone(&self) -> PlayStreamError
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 PlayStreamError
impl Debug for PlayStreamError
Source§impl Display for PlayStreamError
impl Display for PlayStreamError
Source§impl Error for PlayStreamError
impl Error for PlayStreamError
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 PlayStreamError
impl From<BackendSpecificError> for PlayStreamError
Source§fn from(err: BackendSpecificError) -> Self
fn from(err: BackendSpecificError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for PlayStreamError
impl From<Error> for PlayStreamError
Source§impl Hash for PlayStreamError
impl Hash for PlayStreamError
Source§impl PartialEq for PlayStreamError
impl PartialEq for PlayStreamError
impl Eq for PlayStreamError
impl StructuralPartialEq for PlayStreamError
Auto Trait Implementations§
impl Freeze for PlayStreamError
impl RefUnwindSafe for PlayStreamError
impl Send for PlayStreamError
impl Sync for PlayStreamError
impl Unpin for PlayStreamError
impl UnwindSafe for PlayStreamError
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