Skip to main content

InstanceLocalServerHandler

Trait InstanceLocalServerHandler 

Source
pub trait InstanceLocalServerHandler<___T = Channel>
where ___T: Transport,
{ // Required method fn add_line( &mut self, request: Request<AddLine, ___T>, ) -> impl Future<Output = ()>; // Provided method fn on_unknown_interaction( &mut self, ordinal: u64, ) -> impl Future<Output = ()> { ... } }
Expand description

A server handler for the Instance protocol.

See Instance for more details.

Required Methods§

Source

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

Add a line to the canvas.

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".

Implementations on Foreign Types§

Source§

impl<___H, ___T> InstanceLocalServerHandler<___T> for Local<___H>
where ___H: InstanceServerHandler<___T>, ___T: Transport,

Source§

async fn add_line(&mut self, request: Request<AddLine, ___T>)

Source§

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

Implementors§