pub struct RecordedLogs { /* private fields */ }Expand description
Handler for captured logs storage
use tracing::{span, Level};
use tracing_span_capture::RecordedLogs;
let span = span!(Level::INFO, "");
let logs = RecordedLogs::new(&span);
{
let _enter = span.enter();
}
let _logs_list = logs.into_logs();Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RecordedLogs
impl RefUnwindSafe for RecordedLogs
impl Send for RecordedLogs
impl Sync for RecordedLogs
impl Unpin for RecordedLogs
impl UnwindSafe for RecordedLogs
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