[−][src]Module tmkms::prelude
Application-local prelude: conveniently import types/functions/macros which are generally useful and should be available everywhere.
Re-exports
pub use crate::application::app_config; |
pub use crate::application::app_reader; |
pub use crate::application::app_writer; |
Modules
event | Tracing macros Events represent single points in time during the execution of a program. |
span | Tracing macros Spans represent periods of time in which a program was executing in a particular context. |
Macros
debug | Tracing macros Constructs an event at the debug level. |
ensure | Error macros Ensure a condition holds, returning an error if it doesn't (ala assert) |
error | Tracing macros Constructs an event at the error level. |
event | Tracing macros
Constructs a new |
fail | Error macros Create and return an error with a formatted message |
fatal | Error macros Terminate the application with a fatal error, running Abscissa's shutdown hooks. |
format_err | Error macros Create a new error (of a given kind) with a formatted message |
info | Tracing macros Constructs an event at the info level. |
span | Tracing macros Constructs a new span. |
status_attr_err | Status macros Print a tab-delimited status attribute (in red if colors are enabled) |
status_attr_ok | Status macros Print a tab-delimited status attribute (in green if colors are enabled) |
status_err | Status macros Print an error message (in red if colors are enabled) |
status_info | Status macros Print an informational status message (in cyan if colors are enabled) |
status_ok | Status macros Print a success status message (in green if colors are enabled) |
status_warn | Status macros Print a warning status message (in yellow if colors are enabled) |
trace | Tracing macros Constructs an event at the trace level. |
warn | Tracing macros Constructs an event at the warn level. |
Structs
Level | Tracing macros Describes the level of verbosity of a span or event. |
Traits
Application | Commonly used Abscissa traits Application types implementing this trait own global application state, including configuration and arbitrary other values stored within application components. |
Command | Commonly used Abscissa traits
Subcommand of an application: derives or otherwise implements the |
Runnable | Commonly used Abscissa traits
|
Derive Macros
Command | Commonly used Abscissa traits |
Runnable | Commonly used Abscissa traits |