Struct limiting_factor::kernel::Application [−][src]
pub struct Application<U> where
U: Config, { /* fields omitted */ }
Expand description
The application structure allows to encapsulate the service into a CLI application.
The application takes care to run the service and quits with a correct exit code.
It also takes care of initialisation logic like parse the environment to extract the configuration.
Implementations
Starts the application
Exit codes
The software will exit with the following error codes:
- 0: Graceful exit (currently not in use, as the application never stops)
- 1: Error during the application run (e.g. routes conflict or Rocket fairings issues)
- 2: Error parsing the configuration (e.g. no database URL has been defined)
Auto Trait Implementations
impl<U> !RefUnwindSafe for Application<U>
impl<U> !Send for Application<U>
impl<U> !Sync for Application<U>
impl<U> Unpin for Application<U> where
U: Unpin,
impl<U> !UnwindSafe for Application<U>
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert self
to an expression for Diesel’s query builder. Read more
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
Convert &self
to an expression for Diesel’s query builder. Read more