pub struct LogBuffer { /* private fields */ }Expand description
Reusable in-memory log pipeline shared by SDK runtimes and diagnostics tooling.
Implementations§
Source§impl LogBuffer
impl LogBuffer
pub fn new(config: LogBufferConfig) -> Self
pub fn subscribe(&self) -> Receiver<LogMessage>
pub fn attach(&self, recent_limit: usize) -> AttachedLogStream
pub fn snapshot_recent(&self, limit: usize) -> Vec<LogMessage>
pub fn collect_archive(&self, limit: usize) -> Result<CollectedLogArchive>
pub fn push(&self, message: LogMessage)
Auto Trait Implementations§
impl !Freeze for LogBuffer
impl RefUnwindSafe for LogBuffer
impl Send for LogBuffer
impl Sync for LogBuffer
impl Unpin for LogBuffer
impl UnsafeUnpin for LogBuffer
impl UnwindSafe for LogBuffer
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