Enum songbird::error::TrackError
source · #[non_exhaustive]
pub enum TrackError {
Finished,
InvalidTrackEvent,
SeekUnsupported,
}
Expand description
Errors associated with control and manipulation of tracks.
Unless otherwise stated, these don’t invalidate an existing track, but do advise on valid operations and commands.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Finished
The operation failed because the track has ended, has been removed due to call closure, or some error within the driver.
InvalidTrackEvent
The supplied event listener can never be fired by a track, and should be attached to the driver instead.
SeekUnsupported
The track’s underlying Input
doesn’t support seeking operations.
Trait Implementations§
source§impl Clone for TrackError
impl Clone for TrackError
source§fn clone(&self) -> TrackError
fn clone(&self) -> TrackError
Returns a copy 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 TrackError
impl Debug for TrackError
source§impl Display for TrackError
impl Display for TrackError
source§impl Error for TrackError
impl Error for TrackError
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 PartialEq<TrackError> for TrackError
impl PartialEq<TrackError> for TrackError
source§fn eq(&self, other: &TrackError) -> bool
fn eq(&self, other: &TrackError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TrackError
impl Eq for TrackError
impl StructuralEq for TrackError
impl StructuralPartialEq for TrackError
Auto Trait Implementations§
impl RefUnwindSafe for TrackError
impl Send for TrackError
impl Sync for TrackError
impl Unpin for TrackError
impl UnwindSafe for TrackError
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.