pub struct UnboundedMeteredSender<T> { /* private fields */ }
Available on crate feature
common
only.Expand description
A wrapper type around UnboundedSender
that updates metrics on send.
Implementations§
Source§impl<T> UnboundedMeteredSender<T>
impl<T> UnboundedMeteredSender<T>
Sourcepub fn new(sender: UnboundedSender<T>, scope: &'static str) -> Self
pub fn new(sender: UnboundedSender<T>, scope: &'static str) -> Self
Creates a new MeteredSender
wrapping around the provided that updates metrics on send.
Trait Implementations§
Source§impl<T> Clone for UnboundedMeteredSender<T>
impl<T> Clone for UnboundedMeteredSender<T>
Auto Trait Implementations§
impl<T> Freeze for UnboundedMeteredSender<T>
impl<T> !RefUnwindSafe for UnboundedMeteredSender<T>
impl<T> Send for UnboundedMeteredSender<T>where
T: Send,
impl<T> Sync for UnboundedMeteredSender<T>where
T: Send,
impl<T> Unpin for UnboundedMeteredSender<T>
impl<T> !UnwindSafe for UnboundedMeteredSender<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: 40 bytes