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