[][src]Struct gluon_vm::gc::mutex::Mutex

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

Methods

impl<T> Mutex<T>[src]

pub fn new(value: T) -> Self[src]

impl<T: ?Sized> Mutex<T> where
    T: Trace
[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> Debug for Mutex<T> where
    T: Debug + Trace
[src]

impl<T> Default for Mutex<T> where
    T: Default
[src]

impl<T> Trace for Mutex<T> where
    T: Trace
[src]

Auto Trait Implementations

impl<T: ?Sized> RefUnwindSafe for Mutex<T>

impl<T: ?Sized> Send for Mutex<T> where
    T: Send

impl<T: ?Sized> Sync for Mutex<T> where
    T: Send

impl<T: ?Sized> Unpin for Mutex<T> where
    T: Unpin

impl<T: ?Sized> UnwindSafe for Mutex<T>

Blanket Implementations

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

impl<T> Any for T where
    T: Any

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

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

impl<'_, T> Captures<'_> for T[src]

impl<Choices> CoproductSubsetter<CNil, HNil> for Choices[src]

type Remainder = Choices

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastArc for T where
    T: Downcast + Send + Sync
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]

impl<T> From<T> for T[src]

impl<D, T> FromPtr<D> for T[src]

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

impl<T, U, I> LiftInto<U, I> for T where
    U: LiftFrom<T, I>, 
[src]

impl<Source> Sculptor<HNil, HNil> for Source[src]

type Remainder = Source

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.