pub struct LogParser { /* private fields */ }Expand description
统一的内置驱动日志解析器。
Implementations§
Source§impl LogParser
impl LogParser
Sourcepub fn format(&self) -> LogFormatKind
pub fn format(&self) -> LogFormatKind
返回自动识别出的日志格式。
Sourcepub fn iter(&self) -> Result<LogIterator, ParseError>
pub fn iter(&self) -> Result<LogIterator, ParseError>
创建一次新的流式迭代器。
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LogParser
impl RefUnwindSafe for LogParser
impl Send for LogParser
impl Sync for LogParser
impl Unpin for LogParser
impl UnsafeUnpin for LogParser
impl UnwindSafe for LogParser
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