pub struct SenderMonitor(/* private fields */);Expand description
Final counters remain readable after both output sinks have been dropped.
Implementations§
Source§impl SenderMonitor
impl SenderMonitor
pub fn snapshot(&self) -> SenderSnapshot
pub fn inbox_drops(&self) -> u64
pub fn failed(&self) -> bool
pub fn final_stats(&self) -> Option<SenderStats>
Source§impl SenderMonitor
impl SenderMonitor
Sourcepub fn into_runtime_monitor(
self,
destination: &str,
bitrate_bps: u64,
baseline: usize,
) -> LogStreamMonitor
pub fn into_runtime_monitor( self, destination: &str, bitrate_bps: u64, baseline: usize, ) -> LogStreamMonitor
Transfer a read-only worker handle into generated monitoring metadata.
Trait Implementations§
Source§impl Clone for SenderMonitor
impl Clone for SenderMonitor
Source§impl Debug for SenderMonitor
impl Debug for SenderMonitor
Source§impl LogStreamStatsSource for SenderMonitor
impl LogStreamStatsSource for SenderMonitor
fn snapshot(&self) -> LogStreamStats
Auto Trait Implementations§
impl Freeze for SenderMonitor
impl RefUnwindSafe for SenderMonitor
impl Send for SenderMonitor
impl Sync for SenderMonitor
impl Unpin for SenderMonitor
impl UnsafeUnpin for SenderMonitor
impl UnwindSafe for SenderMonitor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> GetTypeRegistration for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more