pub struct MoqTraceWriter<W: Write> {
inner: W,
}Expand description
Writes trace events to a .moqtrace file (JSON-lines with header).
Fields§
§inner: WImplementations§
Source§impl<W: Write> MoqTraceWriter<W>
impl<W: Write> MoqTraceWriter<W>
pub fn new(writer: W) -> Result<Self, MoqTraceError>
pub fn write_event(&mut self, event: &TraceEvent) -> Result<(), MoqTraceError>
pub fn flush(&mut self) -> Result<(), MoqTraceError>
Trait Implementations§
Auto Trait Implementations§
impl<W> Freeze for MoqTraceWriter<W>where
W: Freeze,
impl<W> RefUnwindSafe for MoqTraceWriter<W>where
W: RefUnwindSafe,
impl<W> Send for MoqTraceWriter<W>where
W: Send,
impl<W> Sync for MoqTraceWriter<W>where
W: Sync,
impl<W> Unpin for MoqTraceWriter<W>where
W: Unpin,
impl<W> UnsafeUnpin for MoqTraceWriter<W>where
W: UnsafeUnpin,
impl<W> UnwindSafe for MoqTraceWriter<W>where
W: UnwindSafe,
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