Skip to main content

InstanceServerHandler

Trait InstanceServerHandler 

Source
pub trait InstanceServerHandler<___T = Channel>
where ___T: Transport,
{ // Required method fn add_line( &mut self, request: Request<AddLine, ___T>, ) -> impl Future<Output = ()> + Send; // Provided method fn on_unknown_interaction( &mut self, ordinal: u64, ) -> impl Future<Output = ()> + Send { ... } }
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 = ()> + Send

Add a line to the canvas.

Provided Methods§

Source

fn on_unknown_interaction( &mut self, ordinal: u64, ) -> 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.

Implementors§