pub trait PlayerProxyInterface: Send + Sync {
type PlayResponseFut: Future<Output = Result<PlayerPlayResult, Error>> + Send;
// Required method
fn play(&self, payload: PlayerPlayRequest) -> Self::PlayResponseFut;
}Required Associated Types§
type PlayResponseFut: Future<Output = Result<PlayerPlayResult, Error>> + Send
Required Methods§
fn play(&self, payload: PlayerPlayRequest) -> Self::PlayResponseFut
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".