pub struct MeteredPollSender<T> { /* private fields */ }
Available on crate feature
common
only.Expand description
A wrapper type around [PollSender
] that updates metrics on send.
Implementations§
Source§impl<T: Send + 'static> MeteredPollSender<T>
impl<T: Send + 'static> MeteredPollSender<T>
Sourcepub fn new(sender: PollSender<T>, scope: &'static str) -> Self
pub fn new(sender: PollSender<T>, scope: &'static str) -> Self
Creates a new MeteredPollSender
wrapping around the provided [PollSender
].
Trait Implementations§
Source§impl<T> Clone for MeteredPollSender<T>
impl<T> Clone for MeteredPollSender<T>
Auto Trait Implementations§
impl<T> Freeze for MeteredPollSender<T>
impl<T> !RefUnwindSafe for MeteredPollSender<T>
impl<T> Send for MeteredPollSender<T>where
T: Send,
impl<T> Sync for MeteredPollSender<T>where
T: Send,
impl<T> Unpin for MeteredPollSender<T>
impl<T> !UnwindSafe for MeteredPollSender<T>
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,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 72 bytes