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