pub struct RingFile { /* private fields */ }Expand description
RingFile use a backend thread to maintain RingBuffer, which receive messages with unbounded channel, to prevent lock contention affecting program execution. When program hang or panic, you can call dump() to collect the logs into file.
Implementations§
Auto Trait Implementations§
impl Freeze for RingFile
impl !RefUnwindSafe for RingFile
impl Send for RingFile
impl Sync for RingFile
impl Unpin for RingFile
impl !UnwindSafe for RingFile
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