pub struct ExporterManager { /* private fields */ }Expand description
导出器管理器 - 管理单个导出器
Implementations§
Source§impl ExporterManager
impl ExporterManager
Sourcepub fn from_config(config: &Config) -> Result<Self>
pub fn from_config(config: &Config) -> Result<Self>
从配置创建导出器管理器
Sourcepub fn initialize(&mut self) -> Result<()>
pub fn initialize(&mut self) -> Result<()>
初始化导出器
Sourcepub fn export_batch(&mut self, sqllogs: &[Sqllog<'_>]) -> Result<()>
pub fn export_batch(&mut self, sqllogs: &[Sqllog<'_>]) -> Result<()>
批量导出日志记录
Sourcepub fn stats(&self) -> Option<ExportStats>
pub fn stats(&self) -> Option<ExportStats>
获取导出统计信息
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ExporterManager
impl !RefUnwindSafe for ExporterManager
impl !Send for ExporterManager
impl !Sync for ExporterManager
impl Unpin for ExporterManager
impl UnsafeUnpin for ExporterManager
impl !UnwindSafe for ExporterManager
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more