pub(crate) struct Recorder {
shared: Option<Arc<Mutex<Shared>>>,
}
Fields§
Implementations§
source§impl Recorder
impl Recorder
pub(crate) fn record_data(&self, len: usize)
pub(crate) fn record_non_data(&self)
sourcepub(super) fn for_stream(self, stream: &RecvStream) -> Self
pub(super) fn for_stream(self, stream: &RecvStream) -> Self
If the incoming stream is already closed, convert self into a disabled reporter.
pub(super) fn ensure_not_timed_out(&self) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Recorder
impl RefUnwindSafe for Recorder
impl Send for Recorder
impl Sync for Recorder
impl Unpin for Recorder
impl UnwindSafe for Recorder
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