pub struct LogParser { /* private fields */ }Expand description
SQL 日志文件解析器。
通过 LogParserBuilder 构建实例。每次调用 iter 时
打开文件并以流式方式逐行读取,内存占用与文件大小无关。
Implementations§
Source§impl LogParser
impl LogParser
Sourcepub fn iter(&self) -> Result<LogIterator, ParseError>
pub fn iter(&self) -> Result<LogIterator, ParseError>
打开文件并返回流式迭代器。
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