hyperlane_log/log/trait.rs
1/// Trait for log formatting functions.
2///
3/// Defines the interface for functions that format log data.
4/// Implemented automatically for any compatible Fn(T) -> String.
5///
6/// # Generic Parameters
7///
8/// - `AsRef<str>` - The type of data to be formatted, which will be converted to string slice.
9pub trait LogFuncTrait<T: AsRef<str>>: Fn(T) -> String + Send + Sync {}