Macro implicit_data

Source
macro_rules! implicit_data {
    ($type:ty) => { ... };
    ($type:ty, context: $context:expr) => { ... };
    ($type:ty, $context:expr) => { ... };
    ($type:ty, source: $source:expr) => { ... };
    ($type:ty, force: true) => { ... };
    ($type:ty, timestamp: $secs:expr) => { ... };
    ($type:ty, location: true) => { ... };
    ($type:ty, force: true, location: true) => { ... };
    ($type:ty, $($key:ident: $value:expr),+ $(,)?) => { ... };
}
Expand description

Macro to generate implicit data at the call site

This macro provides several forms:

  • implicit_data!(Type) - Generate with default settings
  • implicit_data!(Type, context: map) - Generate with context map
  • implicit_data!(Type, source: error) - Generate with source error
  • implicit_data!(Type, force: true) - Force generation (for backtraces)
  • implicit_data!(Type, timestamp: secs) - Generate with specific timestamp
  • implicit_data!(Type, location: true) - Include location information