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

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts self into a collection.

Convert self to an expression for Diesel’s query builder. Read more

Convert &self to an expression for Diesel’s query builder. Read more

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Get the TypeId of this object.