Skip to main content

Module application

Module application 

Source
Expand description

The Application entry-point type and its hand-rolled typestate builder.

Structs§

Application
A fully-configured application ready to dispatch.
ApplicationBuilder
Typestate-guarded builder. metadata and version are required; omitting either is a compile error (the build() method is only implemented on ApplicationBuilder<HasMetadata, HasVersion>).
HasMetadata
Phantom marker: metadata has been set.
HasVersion
Phantom marker: version has been set.
NoMetadata
Phantom marker: metadata has not been set.
NoVersion
Phantom marker: version has not been set.

Functions§

report_to_exit_code
Render report and map it to a process exit code.