Skip to main content

TicTacToeClientHandler

Trait TicTacToeClientHandler 

Source
pub trait TicTacToeClientHandler<___T: Transport = Channel> {
    // Required method
    fn on_opponent_move(
        &mut self,
        request: Request<OnOpponentMove, ___T>,
    ) -> impl Future<Output = ()> + Send;
}
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 = ()> + 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.

Implementations on Foreign Types§

Source§

impl<___T> TicTacToeClientHandler<___T> for IgnoreEvents
where ___T: Transport,

Source§

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

Implementors§