Trait AsyncMutexGuard

Source
pub trait AsyncMutexGuard<'mux, DS: Sized> {
    // Required methods
    fn guard(&self) -> &DS;
    fn guard_mut(&mut self) -> &mut DS;
}
Expand description

A trait which generalize the mutex guarding emited by the mutex from various async executors.

Required Methods§

Source

fn guard(&self) -> &DS

Returns the reference to the inner type of the mutex guard.

Source

fn guard_mut(&mut self) -> &mut DS

Returns the mutable reference to the inner type of the mutex guard.

Implementations on Foreign Types§

Source§

impl<'mux, DS: Sized> AsyncMutexGuard<'mux, DS> for MutexGuard<'mux, DS>

Source§

fn guard(&self) -> &DS

Source§

fn guard_mut(&mut self) -> &mut DS

Implementors§