# Enum bitflags::__core::sync::TryLockError [−] [src]

    pub enum TryLockError<T> {
        Poisoned(PoisonError<T>),
        WouldBlock,
    }

1.0.0

An enumeration of possible errors which can occur while calling the `try_lock` method.

## Variants

`Poisoned` | The lock could not be acquired because another thread failed while holding the lock. |
`WouldBlock` | The lock could not be acquired at this time because the operation would otherwise block. |

## Trait Implementations

### `impl<T> From<PoisonError<T>> for TryLockError<T>`

#### `fn from(err: PoisonError<T>) -> TryLockError<T>`

### `impl<T> Debug for TryLockError<T>`

#### `fn fmt(&self, f: &mut Formatter) -> Result<(), Error>`

### `impl<T> Display for TryLockError<T>`

#### `fn fmt(&self, f: &mut Formatter) -> Result<(), Error>`

### `impl<T> Error for TryLockError<T> where T: Reflect`

#### `fn description(&self) -> &str`

#### `fn cause(&self) -> Option<&Error>`

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)