pub trait TicTacToeProxyInterface: Send + Sync {
type MakeMoveResponseFut: Future<Output = Result<(bool, Option<Box<GameState>>), Error>> + Send;
// Required methods
fn start_game(&self, start_first: bool) -> Result<(), Error>;
fn make_move(&self, row: u8, col: u8) -> Self::MakeMoveResponseFut;
}Required Associated Types§
type MakeMoveResponseFut: Future<Output = Result<(bool, Option<Box<GameState>>), Error>> + Send
Required Methods§
fn start_game(&self, start_first: bool) -> Result<(), Error>
fn make_move(&self, row: u8, col: u8) -> Self::MakeMoveResponseFut
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".