pub struct DebugConsumer { /* private fields */ }Expand description
Validate data against the ThinkingData receiver, one event per request.
write_data = false sends a dry run: the receiver validates and replies
but archives nothing — handy during development.
Implementations§
Trait Implementations§
Source§impl Clone for DebugConsumer
impl Clone for DebugConsumer
Source§impl Consumer for DebugConsumer
Available on crate feature blocking only.
impl Consumer for DebugConsumer
Available on crate feature
blocking only.Source§fn add(&self, data: &Data) -> Result<()>
fn add(&self, data: &Data) -> Result<()>
Serialize and POST one event, blocking until the receiver answers.
Source§fn flush(&self) -> Result<()>
fn flush(&self) -> Result<()>
The debug consumer sends every event immediately; nothing to flush.
Source§fn is_stringent(&self) -> bool
fn is_stringent(&self) -> bool
The debug consumer validates property keys strictly.
Auto Trait Implementations§
impl !RefUnwindSafe for DebugConsumer
impl !UnwindSafe for DebugConsumer
impl Forget for DebugConsumer
impl Freeze for DebugConsumer
impl Move for DebugConsumer
impl Send for DebugConsumer
impl Sync for DebugConsumer
impl Unpin for DebugConsumer
impl UnsafeUnpin for DebugConsumer
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