pub struct MailboxMeter { /* private fields */ }Implementations§
Source§impl MailboxMeter
impl MailboxMeter
pub fn new() -> Self
pub fn on_startup(&self)
pub fn on_send_ok_user(&self)
pub fn on_send_ok_ctl(&self)
pub fn on_recv_user(&self)
pub fn on_recv_ctl(&self)
pub fn on_drop_queued_user(&self)
pub fn on_drop_queued_ctl(&self)
pub fn on_process_start(&self)
pub fn on_process_end(&self)
pub fn user_len(&self) -> usize
pub fn ctl_len(&self) -> usize
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn inflight_count(&self) -> usize
pub fn idle_for(&self) -> Duration
pub fn silence_for(&self) -> Duration
pub fn incarnation(&self) -> u64
pub fn inc_incarnation(&self)
pub fn is_closed(&self) -> bool
pub fn set_closed(&self, closed: bool)
pub fn is_terminated(&self) -> bool
pub fn set_terminated(&self, terminated: bool)
pub fn is_overloaded(&self) -> bool
pub fn set_overloaded(&self, overloaded: bool)
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for MailboxMeter
impl RefUnwindSafe for MailboxMeter
impl Send for MailboxMeter
impl Sync for MailboxMeter
impl Unpin for MailboxMeter
impl UnsafeUnpin for MailboxMeter
impl UnwindSafe for MailboxMeter
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