pub struct MemoryOutput { /* private fields */ }Expand description
内存输出器:将日志行存入内存缓冲,用于测试与采集
Implementations§
Source§impl MemoryOutput
impl MemoryOutput
Sourcepub fn with_capacity(capacity: usize) -> Self
pub fn with_capacity(capacity: usize) -> Self
创建带初始容量的内存输出器
Sourcepub fn handle(&self) -> MemoryOutputHandle
pub fn handle(&self) -> MemoryOutputHandle
返回可共享的句柄,用于在外部读取输出内容
Trait Implementations§
Source§impl Debug for MemoryOutput
impl Debug for MemoryOutput
Source§impl Default for MemoryOutput
impl Default for MemoryOutput
Auto Trait Implementations§
impl !Freeze for MemoryOutput
impl !RefUnwindSafe for MemoryOutput
impl Send for MemoryOutput
impl Sync for MemoryOutput
impl Unpin for MemoryOutput
impl UnsafeUnpin for MemoryOutput
impl UnwindSafe for MemoryOutput
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