pub enum LogEvent {
Jdbc(DriverLogEvent),
}Expand description
JDBC 或 DM Provider 日志事件。
Variants§
Jdbc(DriverLogEvent)
Implementations§
Source§impl LogEvent
impl LogEvent
Sourcepub fn format(&self) -> LogFormatKind
pub fn format(&self) -> LogFormatKind
返回事件所属的日志格式。
Sourcepub fn used_time_ms(&self) -> Option<f64>
pub fn used_time_ms(&self) -> Option<f64>
返回统一换算后的耗时(毫秒)。
Sourcepub fn line_number(&self) -> u64
pub fn line_number(&self) -> u64
返回物理起始行号;单条解析返回 0。
Sourcepub fn as_jdbc(&self) -> Option<&DriverLogEvent>
pub fn as_jdbc(&self) -> Option<&DriverLogEvent>
如果事件来自 JDBC,返回 JDBC 专属字段。
Trait Implementations§
impl StructuralPartialEq for LogEvent
Auto Trait Implementations§
impl Freeze for LogEvent
impl RefUnwindSafe for LogEvent
impl Send for LogEvent
impl Sync for LogEvent
impl Unpin for LogEvent
impl UnsafeUnpin for LogEvent
impl UnwindSafe for LogEvent
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