pub struct LogAlertHook;Expand description
将告警输出到标准错误流的简单实现。
不依赖外部 log crate,避免在测试或最小化部署场景下引入额外配置。
Implementations§
Source§impl LogAlertHook
impl LogAlertHook
Trait Implementations§
Source§impl AlertHook for LogAlertHook
impl AlertHook for LogAlertHook
Auto Trait Implementations§
impl Freeze for LogAlertHook
impl RefUnwindSafe for LogAlertHook
impl Send for LogAlertHook
impl Sync for LogAlertHook
impl Unpin for LogAlertHook
impl UnsafeUnpin for LogAlertHook
impl UnwindSafe for LogAlertHook
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