Trait IController

Source
pub trait IController: Send + Sync {
    // Required method
    fn call(
        &self,
        tt: u8,
        cmd_tag: i32,
        dr: DataOwnedReader,
    ) -> impl Future<Output = Result<RetResult>> + Send;
}
Expand description

Trait representing a controller that can handle calls.

Required Methods§

Source

fn call( &self, tt: u8, cmd_tag: i32, dr: DataOwnedReader, ) -> impl Future<Output = Result<RetResult>> + Send

Handles a call with the given parameters.

§Parameters
  • tt: A u8 representing the type.
  • cmd_tag: An i32 representing the command tag.
  • dr: A DataOwnedReader instance.
§Returns

A future that resolves to a Result containing a RetResult.

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§