Skip to main content

TicTacToeLocalServerHandler

Trait TicTacToeLocalServerHandler 

Source
pub trait TicTacToeLocalServerHandler<___T: Transport = Channel> {
    // Required methods
    fn start_game(
        &mut self,
        request: Request<StartGame, ___T>,
    ) -> impl Future<Output = ()>;
    fn make_move(
        &mut self,
        request: Request<MakeMove, ___T>,
        responder: Responder<MakeMove, ___T>,
    ) -> impl Future<Output = ()>;
}
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 = ()>

Source

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

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.

Implementations on Foreign Types§

Source§

impl<___H, ___T> TicTacToeLocalServerHandler<___T> for Local<___H>
where ___H: TicTacToeServerHandler<___T>, ___T: Transport,

Source§

async fn start_game(&mut self, request: Request<StartGame, ___T>)

Source§

async fn make_move( &mut self, request: Request<MakeMove, ___T>, responder: Responder<MakeMove, ___T>, )

Implementors§