#[non_exhaustive]pub enum ControlError {
Finished,
InvalidTrackEvent,
Play(PlayError),
Dropped,
}Available on crate feature
driver only.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.
Play(PlayError)
A command to seek or ready the target track failed when parsing or creating the stream.
This is a fatal error, and the track will be removed.
Dropped
Another seek/make_playable request was made, and so this callback handler was dropped.
Trait Implementations§
Source§impl Clone for ControlError
impl Clone for ControlError
Source§fn clone(&self) -> ControlError
fn clone(&self) -> ControlError
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 ControlError
impl Debug for ControlError
Source§impl Display for ControlError
impl Display for ControlError
Source§impl Error for ControlError
impl Error for ControlError
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()
Auto Trait Implementations§
impl Freeze for ControlError
impl !RefUnwindSafe for ControlError
impl Send for ControlError
impl Sync for ControlError
impl Unpin for ControlError
impl !UnwindSafe for ControlError
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