Crate rapid

Source

Re-exports§

pub extern crate time;

Modules§

_core
The Rust Core Library
fail_methods
logger

Macros§

__lazy_static_create
bail
debug
Logs a message at the debug level.
ensure
Exits a function early with an Error if the condition is not satisfied.
error
Logs a message at the error level.
format_err
Constructs an Error using the standard string interpolation syntax.
info
Logs a message at the info level.
lazy_static
log
The standard logging macro.
log_enabled
Determines if a message logged at the specified level in that module will be logged.
log_process
run_and_measure
trace
Logs a message at the trace level.
warn
Logs a message at the warn level.

Structs§

App
Backtrace
A Backtrace.
Causes
A iterator over the causes of a Fail
Compat
A compatibility wrapper around an error type from this crate.
Context
An error with context around it.
CumulativeError
Error
The Error type, which can contain any failure.
LogLocation
The location of a log message.
LogMetadata
Metadata about a log message.
LogRecord
The “payload” of a log message.
MaxLogLevelFilter
A token providing read and write access to the global maximum log level filter.
SetLoggerError
The type returned by set_logger if set_logger has already been called.
ShutdownLoggerError
The type returned by shutdown_logger_raw if shutdown_logger_raw has already been called or if set_logger_raw has not been called yet.
SyncFailure
Wrapper for std errors to make them Sync.

Enums§

LogLevel
An enum representing the available verbosity levels of the logging framework
LogLevelFilter
An enum representing the available verbosity level filters of the logging framework.
StdResult
Result is a type that represents either success (Ok) or failure (Err).

Traits§

AsFail
The AsFail trait
CumulativeErrorCollector
ErrorMethods
Fail
The Fail trait.
FailMethods
LazyStatic
Support trait for enabling a few common operation on lazy static values.
Log
A trait encapsulating the operations required of a logger
OptionMethods
ResultExt
Extension methods for Result.
ResultMethods
__Deref
Used for immutable dereferencing operations, like *v.

Functions§

err_msg
Constructs a Fail type from a string.
initialize
Takes a shared reference to a lazy static and initializes it if it has not been already.
max_log_level
Returns the current maximum log level.
set_logger
Sets the global logger.
set_logger_raw
Sets the global logger from a raw pointer.
shutdown_logger
Shuts down the global logger.
shutdown_logger_raw
Shuts down the global logger.

Type Aliases§

Fallible
A common result with an Error.
Result

Derive Macros§

Deserialize
Fail
Serialize