pub enum LogCommand {
Write(Vec<u8>),
WriteForce(Vec<u8>),
Rotate,
Compress(PathBuf),
Flush,
Shutdown(&'static str),
HealthCheck(Sender<bool>),
}Expand description
统一的日志命令枚举
Variants§
Write(Vec<u8>)
写入日志数据
WriteForce(Vec<u8>)
强制写入日志数据(忽略批量限制)
Rotate
文件轮转
Compress(PathBuf)
文件压缩
Flush
强制刷新
Shutdown(&'static str)
停止工作线程
HealthCheck(Sender<bool>)
健康检查(用于初始化时验证工作线程状态)
Trait Implementations§
Source§impl Clone for LogCommand
impl Clone for LogCommand
Auto Trait Implementations§
impl Forget for LogCommand
impl Freeze for LogCommand
impl RefUnwindSafe for LogCommand
impl Send for LogCommand
impl Sync for LogCommand
impl Unpin for LogCommand
impl UnsafeUnpin for LogCommand
impl UnwindSafe for LogCommand
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more