Struct loom::sync::Mutex [−][src]
pub struct Mutex<T> { /* fields omitted */ }
Expand description
Mock implementation of std::sync::Mutex
.
Implementations
Acquires a mutex, blocking the current thread until it is able to do so.
Attempts to acquire this lock.
If the lock could not be acquired at this time, then Err
is returned.
Otherwise, an RAII guard is returned. The lock will be unlocked when the
guard is dropped.
This function does not block.
Consumes this mutex, returning the underlying data.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for Mutex<T>
impl<T> UnwindSafe for Mutex<T>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more