Skip to main content

TicTacToeLocalClientHandler

Trait TicTacToeLocalClientHandler 

Source
pub trait TicTacToeLocalClientHandler<___T: Transport = Channel> {
    // Required method
    fn on_opponent_move(
        &mut self,
        request: Request<OnOpponentMove, ___T>,
    ) -> impl Future<Output = ()>;
}
Expand description

A client handler for the TicTacToe protocol.

See TicTacToe for more details.

Required Methods§

Source

fn on_opponent_move( &mut self, request: Request<OnOpponentMove, ___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> TicTacToeLocalClientHandler<___T> for Local<___H>
where ___H: TicTacToeClientHandler<___T>, ___T: Transport,

Source§

async fn on_opponent_move(&mut self, request: Request<OnOpponentMove, ___T>)

Implementors§