pub struct ConnectionWorkCounter(/* private fields */);Expand description
Where connections count their work. Clones count into the same place.
Implementations§
Source§impl ConnectionWorkCounter
impl ConnectionWorkCounter
Sourcepub fn take(&self) -> ConnectionWork
pub fn take(&self) -> ConnectionWork
The work counted since the last take, starting the count again.
Trait Implementations§
Source§impl Clone for ConnectionWorkCounter
impl Clone for ConnectionWorkCounter
Auto Trait Implementations§
impl Freeze for ConnectionWorkCounter
impl RefUnwindSafe for ConnectionWorkCounter
impl Send for ConnectionWorkCounter
impl Sync for ConnectionWorkCounter
impl Unpin for ConnectionWorkCounter
impl UnsafeUnpin for ConnectionWorkCounter
impl UnwindSafe for ConnectionWorkCounter
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