Struct antidote::Mutex [] [src]

pub struct Mutex<T: ?Sized>(_);
[]

Like std::sync::Mutex except that it does not poison itself.

Methods

impl<T> Mutex<T>

fn new(t: T) -> Mutex<T>[]

Like std::sync::Mutex::new.

fn into_inner(self) -> T[]

Like std::sync::Mutex::into_inner.

impl<T: ?Sized> Mutex<T>

fn lock<'a>(&'a self) -> MutexGuard<'a, T>[]

Like std::sync::Mutex::lock.

fn try_lock<'a>(&'a self) -> TryLockResult<MutexGuard<'a, T>>[]

Like std::sync::Mutex::try_lock.

fn get_mut(&mut self) -> &mut T[]

Like std::sync::Mutex::get_mut.

Trait Implementations

impl<T: ?Sized + Debug> Debug for Mutex<T>

fn fmt(&self, fmt: &mut Formatter) -> Result