pub struct StringSink { /* private fields */ }Expand description
A simple log sink that writes to a Vec<String>.
Implementations§
Source§impl StringSink
impl StringSink
Sourcepub fn record(&mut self, event: &TraceEvent)
pub fn record(&mut self, event: &TraceEvent)
Record a formatted event.
Trait Implementations§
Source§impl Clone for StringSink
impl Clone for StringSink
Source§fn clone(&self) -> StringSink
fn clone(&self) -> StringSink
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StringSink
impl Debug for StringSink
Source§impl Default for StringSink
impl Default for StringSink
Source§fn default() -> StringSink
fn default() -> StringSink
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StringSink
impl RefUnwindSafe for StringSink
impl Send for StringSink
impl Sync for StringSink
impl Unpin for StringSink
impl UnsafeUnpin for StringSink
impl UnwindSafe for StringSink
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