hyperlane_log/log/
type.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
use super::r#trait::LogFuncTrait;
use http_type::*;
use lombok_macros::Lombok;

pub type LogListArcLock = ArcRwLock<Vec<(String, BoxLogFunc)>>;
pub type LogArcLock = ArcRwLock<Log>;
pub type LogFunc = dyn LogFuncTrait;
pub type BoxLogFunc = Box<LogFunc>;

#[derive(Debug, Clone, Lombok)]
pub struct Log {
    pub(super) path: String,
    pub(super) file_size: usize,
}