[−][src]Struct new_home_application::application::application_framework::Application
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 boot
ed, contains the fully built ApplicationConfig
struct
communication_manager: Option<Box<dyn CommunicationManager + Send + Sync>>
When boot
ed, 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]
fn boot(&mut self) -> Result<(), AppError>
[src]
fn run(&self) -> Result<(), AppError>
[src]
fn multi_run(self, thread_count: i32) -> Result<(), AppError>
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,