pub struct Events { /* private fields */ }Implementations§
Source§impl TxEvents
impl TxEvents
pub fn new(gso: Gso) -> Self
Sourcepub fn is_blocked(&self) -> bool
pub fn is_blocked(&self) -> bool
Returns if the task is blocked
Sourcepub fn take_blocked(&mut self) -> bool
pub fn take_blocked(&mut self) -> bool
Returns if the task was blocked and resets the value
Sourcepub fn take_count(&mut self) -> usize
pub fn take_count(&mut self) -> usize
Returns and resets the number of messages sent
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TxEvents
impl RefUnwindSafe for TxEvents
impl Send for TxEvents
impl Sync for TxEvents
impl Unpin for TxEvents
impl UnwindSafe for TxEvents
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more