Skip to main content

InstanceLocalClientHandler

Trait InstanceLocalClientHandler 

Source
pub trait InstanceLocalClientHandler<___T: Transport = Channel> {
    // Required method
    fn on_drawn(
        &mut self,
        request: Request<OnDrawn, ___T>,
    ) -> impl Future<Output = ()>;

    // Provided method
    fn on_unknown_interaction(
        &mut self,
        ordinal: u64,
    ) -> impl Future<Output = ()> { ... }
}
Expand description

A client handler for the Instance protocol.

See Instance for more details.

Required Methods§

Source

fn on_drawn( &mut self, request: Request<OnDrawn, ___T>, ) -> impl Future<Output = ()>

Update the client with the latest drawing state. The server makes no guarantees about how often this event occurs - it could occur multiple times per board state, for example.

Provided Methods§

Source

fn on_unknown_interaction(&mut self, ordinal: u64) -> 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> InstanceLocalClientHandler<___T> for Local<___H>
where ___H: InstanceClientHandler<___T>, ___T: Transport,

Source§

async fn on_drawn(&mut self, request: Request<OnDrawn, ___T>)

Source§

async fn on_unknown_interaction(&mut self, ordinal: u64)

Implementors§