hyperlane_log/log/
type.rs

1use crate::*;
2
3/// A collection of named log formatting functions.
4pub type ListLog<T> = Vec<(String, ArcLogFunc<T>)>;
5/// Thread-safe shared reference to a collection of log functions.
6pub type LogListArcLock<T> = Arc<RwLock<ListLog<T>>>;
7/// Thread-safe shared reference to a Log configuration instance.
8pub type LogArcLock = Arc<RwLock<Log>>;
9/// Trait object representing a log formatting function.
10pub type LogFunc<T> = dyn LogFuncTrait<T>;
11/// Thread-safe shared reference to a log formatting function.
12pub type ArcLogFunc<T> = Arc<LogFunc<T>>;
13/// Thread-safe shared reference to a Log configuration.
14pub type ArcLog = Arc<Log>;