Expand description
Application-local prelude: conveniently import types/functions/macros which are generally useful and should be available everywhere.
Re-exports
pub use crate::application::APP;
Modules
Events represent single points in time during the execution of a program.
Spans represent periods of time in which a program was executing in a particular context.
Macros
Constructs an event at the debug level.
Ensure a condition holds, returning an error if it doesn’t (ala assert)
Constructs an event at the error level.
Constructs a new Event
.
Create and return an error with a formatted message
Terminate the application with a fatal error, running Abscissa’s shutdown hooks.
Create a new error (of a given kind) with a formatted message
Constructs an event at the info level.
Constructs a new span.
Status macros Print a tab-delimited status attribute (in red if colors are enabled)
Status macros Print a tab-delimited status attribute (in green if colors are enabled)
Print an error message (in red if colors are enabled)
Print an informational status message (in cyan if colors are enabled)
Print a success status message (in green if colors are enabled)
Print a warning status message (in yellow if colors are enabled)
Constructs an event at the trace level.
Constructs an event at the warn level.
Structs
Describes the level of verbosity of a span or event.
Traits
Application types implementing this trait own global application state, including configuration and arbitrary other values stored within application components.
Subcommand of an application: derives or otherwise implements the Options
trait, but also has a run()
method which can be used to invoke the given
(sub)command.
Runnable
is a common trait for things which can be run without any
arguments.