pub struct ChannelsGuard { /* private fields */ }Expand description
Guard for channel statistics collection. When dropped, prints a summary of all instrumented channels and their statistics.
Use ChannelsGuardBuilder to create a guard with custom configuration.
§Examples
use channels_console::ChannelsGuard;
let _guard = ChannelsGuard::new();
// Your code with instrumented channels here
// Statistics will be printed when _guard is droppedImplementations§
Source§impl ChannelsGuard
impl ChannelsGuard
Trait Implementations§
Source§impl Default for ChannelsGuard
impl Default for ChannelsGuard
Auto Trait Implementations§
impl Freeze for ChannelsGuard
impl RefUnwindSafe for ChannelsGuard
impl Send for ChannelsGuard
impl Sync for ChannelsGuard
impl Unpin for ChannelsGuard
impl UnwindSafe for ChannelsGuard
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