Skip to main content

ResourceControllerServerHandler

Trait ResourceControllerServerHandler 

Source
pub trait ResourceControllerServerHandler<___T: Transport = Channel> {
    // Required method
    fn remove(&mut self) -> 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 ResourceController protocol.

See ResourceController for more details.

Required Methods§

Source

fn remove(&mut self) -> impl Future<Output = ()> + Send

Removes the resource.

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§