[][src]Struct may::sync::Mutex

pub struct Mutex<T: ?Sized> { /* fields omitted */ }

Methods

impl<T> Mutex<T>[src]

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

Creates a new mutex in an unlocked state ready for use.

impl<T: ?Sized> Mutex<T>[src]

pub fn lock(&self) -> LockResult<MutexGuard<T>>[src]

pub fn try_lock(&self) -> TryLockResult<MutexGuard<T>>[src]

pub fn is_poisoned(&self) -> bool[src]

pub fn into_inner(self) -> LockResult<T> where
    T: Sized
[src]

pub fn get_mut(&mut self) -> LockResult<&mut T>[src]

Trait Implementations

impl<T: ?Sized + Default> Default for Mutex<T>[src]

impl<T: ?Sized + Send> Send for Mutex<T>[src]

impl<T: ?Sized + Send> Sync for Mutex<T>[src]

impl<T: ?Sized + Debug> Debug for Mutex<T>[src]

impl<T: ?Sized> UnwindSafe for Mutex<T>[src]

impl<T: ?Sized> RefUnwindSafe for Mutex<T>[src]

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.