Trait ICreateController

Source
pub trait ICreateController {
    type Controller: IController;

    // Required method
    fn create_controller(
        &self,
        token: NetxToken<Self::Controller>,
    ) -> Result<Arc<Self::Controller>>;
}
Expand description

Trait for creating controllers.

Required Associated Types§

Required Methods§

Source

fn create_controller( &self, token: NetxToken<Self::Controller>, ) -> Result<Arc<Self::Controller>>

Creates a new controller.

§Parameters
  • token: A NetxToken for the controller.
§Returns

A Result containing an Arc to the created controller.

Implementors§