[][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;
pub use abscissa::Command;
pub use abscissa::Runnable;

Macros

debug

Logs a message at the debug level.

error

Logs a message at the error level.

info

Logs a message at the info level.

log

The standard logging macro.

log_enabled

Determines if a message logged at the specified level in that module will be logged.

trace

Logs a message at the trace level.

warn

Logs a message at the warn level.

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 Options trait, but also has a call() method which can be used to invoke the given (sub)command.

Runnable

Runnable is a common trait for things which can be run without any arguments.