Skip to main content

TicTacToeServerHandler

Trait TicTacToeServerHandler 

Source
pub trait TicTacToeServerHandler<___T = Channel>
where ___T: Transport,
{ // Required methods fn start_game( &mut self, request: Request<StartGame, ___T>, ) -> impl Future<Output = ()> + Send; fn make_move( &mut self, request: Request<MakeMove, ___T>, responder: Responder<MakeMove, ___T>, ) -> impl Future<Output = ()> + Send; }
Expand description

A server handler for the TicTacToe protocol.

See TicTacToe for more details.

Required Methods§

Source

fn start_game( &mut self, request: Request<StartGame, ___T>, ) -> impl Future<Output = ()> + Send

Source

fn make_move( &mut self, request: Request<MakeMove, ___T>, responder: Responder<MakeMove, ___T>, ) -> impl Future<Output = ()> + Send

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§