# Struct parking_lot::RawMutex [−] [src]

    pub struct RawMutex { /* fields omitted */ }

Raw mutex type backed by the parking lot.

## Trait Implementations

### `impl RawMutex for RawMutex` [src]

#### `const INIT: RawMutex` [src]

Initial value for an unlocked mutex.

#### `type GuardMarker = GuardNoSend`

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

#### `fn lock(&self)` [src]

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

#### `fn try_lock(&self) -> bool` [src]

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

#### `unsafe fn unlock(&self)` [src]

Unlocks this mutex. Read more

#### `fn is_locked(&self) -> bool` [src]

Checks whether the mutex is currently locked.

### `impl RawMutexFair for RawMutex` [src]

#### `unsafe fn unlock_fair(&self)` [src]

Unlocks this mutex using a fair unlock protocol. Read more

#### `unsafe fn bump(&self)` [src]

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

### `impl RawMutexTimed for RawMutex` [src]

#### `type Duration = Duration`

Duration type used for `try_lock_for`.

#### `type Instant = Instant`

Instant type used for `try_lock_until`.

#### `fn try_lock_until(&self, timeout: Instant) -> bool` [src]

Attempts to acquire this lock until a timeout is reached.

#### `fn try_lock_for(&self, timeout: Duration) -> bool` [src]

Attempts to acquire this lock until a timeout is reached.

## Auto Trait Implementations

### `impl RefUnwindSafe for RawMutex`

### `impl Send for RawMutex`

### `impl Sync for RawMutex`

### `impl Unpin for RawMutex`

### `impl UnwindSafe for RawMutex`

## Blanket Implementations

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

#### `pub fn type_id(&self) -> TypeId` [src]

Gets the `TypeId` of `self`. Read more

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

#### `pub fn borrow(&self) -> &T` [src]

Immutably borrows from an owned value. Read more

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

#### `pub fn borrow_mut(&mut self) -> &mut T` [src]

Mutably borrows from an owned value. Read more

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

#### `pub fn from(t: T) -> T` [src]

Performs the conversion.

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

#### `pub fn into(self) -> U` [src]

Performs the conversion.

### `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.

#### `pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>` [src]

Performs the conversion.

### `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.

#### `pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>` [src]

Performs the conversion.