[][src]Trait new_home_application::application::application_framework::ApplicationFramework

pub trait ApplicationFramework {
    fn get_application_port(&self) -> i16;
fn get_application_ip(&self) -> String;
fn get_application_info(&self) -> ApplicationInfo;
fn setup_method_manager(&self, method_manager: &mut Box<dyn MethodManager>); }

This trait has to be implemented by the main application It is used to get all the required data for the Application to be booted and run

Required methods

fn get_application_port(&self) -> i16

Returns the port on which the application should run

fn get_application_ip(&self) -> String

Contains the ip on which the application should be run

fn get_application_info(&self) -> ApplicationInfo

Contains the general application info

fn setup_method_manager(&self, method_manager: &mut Box<dyn MethodManager>)

Used to register your methods in the method_manager Methods can only be registered here, once

Loading content...

Implementors

Loading content...