pub struct Guard<'mutex>(_);
Expand description
Mutex-guarded wrapper type containing a locked session
Methods from Deref<Target = Session>§
sourcepub fn messages_sent(&self) -> Result<usize, Error>
pub fn messages_sent(&self) -> Result<usize, Error>
Number of messages sent during this session
sourcepub fn is_timed_out(&self) -> bool
pub fn is_timed_out(&self) -> bool
Has this session timed out?
Trait Implementations§
Auto Trait Implementations§
impl<'mutex> RefUnwindSafe for Guard<'mutex>
impl<'mutex> !Send for Guard<'mutex>
impl<'mutex> Sync for Guard<'mutex>
impl<'mutex> Unpin for Guard<'mutex>
impl<'mutex> UnwindSafe for Guard<'mutex>
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