implement pagination interface for listview

This commit is contained in:
Henrik Friedrichsen
2019-04-09 22:48:42 +02:00
parent 95370b23c0
commit 69e6c77753
2 changed files with 92 additions and 5 deletions

View File

@@ -7,7 +7,7 @@ use cursive::Cursive;
use commands::CommandResult;
use queue::Queue;
pub trait ListItem {
pub trait ListItem: Sync + Send + 'static {
fn is_playing(&self, queue: Arc<Queue>) -> bool;
fn display_left(&self) -> String;
fn display_right(&self) -> String;