pub trait MusicPlayer: Send + Sync + 'static {
Show 15 methods // Required methods fn toggle_pause<'life0, 'async_trait>( &'life0 self, request: Request<TogglePauseRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<TogglePauseResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn skip_next<'life0, 'async_trait>( &'life0 self, request: Request<SkipNextRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<SkipNextResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_progress<'life0, 'async_trait>( &'life0 self, request: Request<GetProgressRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<GetProgressResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn volume_up<'life0, 'async_trait>( &'life0 self, request: Request<VolumeUpRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<VolumeReply>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn volume_down<'life0, 'async_trait>( &'life0 self, request: Request<VolumeDownRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<VolumeReply>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn cycle_loop<'life0, 'async_trait>( &'life0 self, request: Request<CycleLoopRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<CycleLoopReply>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn speed_up<'life0, 'async_trait>( &'life0 self, request: Request<SpeedUpRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<SpeedReply>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn speed_down<'life0, 'async_trait>( &'life0 self, request: Request<SpeedDownRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<SpeedReply>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn toggle_gapless<'life0, 'async_trait>( &'life0 self, request: Request<ToggleGaplessRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<ToggleGaplessReply>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn seek_forward<'life0, 'async_trait>( &'life0 self, request: Request<SeekForwardRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<PlayerTime>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn seek_backward<'life0, 'async_trait>( &'life0 self, request: Request<SeekBackwardRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<PlayerTime>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn reload_config<'life0, 'async_trait>( &'life0 self, request: Request<ReloadConfigRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<EmptyReply>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn reload_playlist<'life0, 'async_trait>( &'life0 self, request: Request<ReloadPlaylistRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<EmptyReply>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn play_selected<'life0, 'async_trait>( &'life0 self, request: Request<PlaySelectedRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<EmptyReply>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn skip_previous<'life0, 'async_trait>( &'life0 self, request: Request<SkipPreviousRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<EmptyReply>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait;
}
Expand description

Generated trait containing gRPC methods that should be implemented for use with MusicPlayerServer.

Required Methods§

source

fn toggle_pause<'life0, 'async_trait>( &'life0 self, request: Request<TogglePauseRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<TogglePauseResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn skip_next<'life0, 'async_trait>( &'life0 self, request: Request<SkipNextRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<SkipNextResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn get_progress<'life0, 'async_trait>( &'life0 self, request: Request<GetProgressRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<GetProgressResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn volume_up<'life0, 'async_trait>( &'life0 self, request: Request<VolumeUpRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<VolumeReply>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn volume_down<'life0, 'async_trait>( &'life0 self, request: Request<VolumeDownRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<VolumeReply>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn cycle_loop<'life0, 'async_trait>( &'life0 self, request: Request<CycleLoopRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<CycleLoopReply>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn speed_up<'life0, 'async_trait>( &'life0 self, request: Request<SpeedUpRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<SpeedReply>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn speed_down<'life0, 'async_trait>( &'life0 self, request: Request<SpeedDownRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<SpeedReply>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn toggle_gapless<'life0, 'async_trait>( &'life0 self, request: Request<ToggleGaplessRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<ToggleGaplessReply>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn seek_forward<'life0, 'async_trait>( &'life0 self, request: Request<SeekForwardRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<PlayerTime>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn seek_backward<'life0, 'async_trait>( &'life0 self, request: Request<SeekBackwardRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<PlayerTime>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn reload_config<'life0, 'async_trait>( &'life0 self, request: Request<ReloadConfigRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<EmptyReply>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn reload_playlist<'life0, 'async_trait>( &'life0 self, request: Request<ReloadPlaylistRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<EmptyReply>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn play_selected<'life0, 'async_trait>( &'life0 self, request: Request<PlaySelectedRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<EmptyReply>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn skip_previous<'life0, 'async_trait>( &'life0 self, request: Request<SkipPreviousRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<EmptyReply>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§