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