pub enum TrackLoadData {
Track(TrackData),
Playlist(PlaylistData),
Search(Vec<TrackData>),
Error(TrackError),
}
Expand description
The data returned when loading a track.
Variants§
Track(TrackData)
A track has been loaded.
Playlist(PlaylistData)
A playlist has been loaded.
Search(Vec<TrackData>)
A search result has been loaded.
Error(TrackError)
Loading has failed with an error.
Trait Implementations§
Source§impl Clone for TrackLoadData
impl Clone for TrackLoadData
Source§fn clone(&self) -> TrackLoadData
fn clone(&self) -> TrackLoadData
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 TrackLoadData
impl Debug for TrackLoadData
Source§impl<'de> Deserialize<'de> for TrackLoadData
impl<'de> Deserialize<'de> for TrackLoadData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TrackLoadData
impl PartialEq for TrackLoadData
Source§impl Serialize for TrackLoadData
impl Serialize for TrackLoadData
impl StructuralPartialEq for TrackLoadData
Auto Trait Implementations§
impl Freeze for TrackLoadData
impl RefUnwindSafe for TrackLoadData
impl Send for TrackLoadData
impl Sync for TrackLoadData
impl Unpin for TrackLoadData
impl UnwindSafe for TrackLoadData
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