[][src]Struct new_home_application::application::application_framework::Application

pub struct Application {
    pub application_framework: Box<dyn ApplicationFramework>,
    pub application_config: Option<ApplicationConfig>,
    pub communication_manager: Option<Box<dyn CommunicationManager + Send + Sync>>,
    // some fields omitted
}

The application structure contains all the required objects and infos for the application's boot and run process Once an implemented ApplicationFramework is given to it, the methods boot and run will create the ApplicationConfig and the CommunicationManager with the help of the provided data by the ApplicationFramework to handle requests by connecting clients

Fields

application_framework: Box<dyn ApplicationFramework>

The application specific ApplicationFramework instance used to initialize the application

application_config: Option<ApplicationConfig>

When booted, contains the fully built ApplicationConfig struct

communication_manager: Option<Box<dyn CommunicationManager + Send + Sync>>

When booted, contains a filled CommunicationManager While created the required dependencies will be build too

Methods

impl Application[src]

pub fn new(application_framework: Box<dyn ApplicationFramework>) -> Self[src]

Trait Implementations

impl BootApplication for Application[src]

impl Send for Application[src]

impl Sync for Application[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.