@@ -10,6 +10,7 @@ use command::Command;
|
||||
use commands::CommandResult;
|
||||
use library::Library;
|
||||
use queue::Queue;
|
||||
use track::Track;
|
||||
|
||||
pub trait ListItem: Sync + Send + 'static {
|
||||
fn is_playing(&self, queue: Arc<Queue>) -> bool;
|
||||
@@ -31,6 +32,10 @@ pub trait ListItem: Sync + Send + 'static {
|
||||
None
|
||||
}
|
||||
|
||||
fn track(&self) -> Option<Track> {
|
||||
None
|
||||
}
|
||||
|
||||
fn as_listitem(&self) -> Box<dyn ListItem>;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user