pub struct RawMutex { /* private fields */ }
Expand description

Raw mutex type backed by the parking lot.

Trait Implementations

Initial value for an unlocked mutex.

Marker type which determines whether a lock guard should be Send. Use one of the GuardSend or GuardNoSend helper types here. Read more

Acquires this mutex, blocking the current thread until it is able to do so.

Attempts to acquire this mutex without blocking. Returns true if the lock was successfully acquired and false otherwise. Read more

Unlocks this mutex. Read more

Checks whether the mutex is currently locked.

Unlocks this mutex using a fair unlock protocol. Read more

Temporarily yields the mutex to a waiting thread if there is one. Read more

Duration type used for try_lock_for.

Instant type used for try_lock_until.

Attempts to acquire this lock until a timeout is reached.

Attempts to acquire this lock until a timeout is reached.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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