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>[src]
pub fn new(t: T) -> Mutex<T>[src]
Like std::sync::Mutex::new.
pub fn into_inner(self) -> T[src]
Like std::sync::Mutex::into_inner.
impl<T: ?Sized> Mutex<T>[src]
pub fn lock<'a>(&'a self) -> MutexGuard<'a, T>[src]
Like std::sync::Mutex::lock.
pub fn try_lock<'a>(&'a self) -> TryLockResult<MutexGuard<'a, T>>[src]
Like std::sync::Mutex::try_lock.
ⓘImportant traits for &'a mut Rpub fn get_mut(&mut self) -> &mut T[src]
ⓘImportant traits for &'a mut R
Like std::sync::Mutex::get_mut.