init

Function init 

Source
pub fn init(layers: Vec<Box<dyn Layer<Registry> + Send + Sync + 'static>>)
Expand description

Creates a Registry, adds the given Layers to it, and attempts to set itself as the global default subscriber in the current scope, panicking if this fails.

See init

ยงErrors

  • An error can be thrown on registry initialization