pub struct LogParserBuilder { /* private fields */ }Expand description
自动识别 JDBC 或 DM Provider 格式的文件解析器构建器。
Implementations§
Source§impl LogParserBuilder
impl LogParserBuilder
Sourcepub fn encoding_hint(self, hint: FileEncodingHint) -> Self
pub fn encoding_hint(self, hint: FileEncodingHint) -> Self
设置输入文件编码;默认自动识别 UTF-8 或 GB18030。
Sourcepub fn build(self) -> Result<LogParser, ParseError>
pub fn build(self) -> Result<LogParser, ParseError>
打开文件并根据第一条记录选择内置格式。
Auto Trait Implementations§
impl Freeze for LogParserBuilder
impl RefUnwindSafe for LogParserBuilder
impl Send for LogParserBuilder
impl Sync for LogParserBuilder
impl Unpin for LogParserBuilder
impl UnsafeUnpin for LogParserBuilder
impl UnwindSafe for LogParserBuilder
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