std::sync::TryLockError

Enum std::sync::TryLockError

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

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

Variants

The lock could not be acquired because another thread failed while holding the lock.

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> [src]

Performs the conversion.

impl<T> Debug for TryLockError<T> [src]

Formats the value using the given formatter.

impl<T> Display for TryLockError<T> [src]

Formats the value using the given formatter. Read more

impl<T> Error for TryLockError<T> [src]

A short description of the error. Read more

The lower-level cause of this error, if any. Read more

© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/std/sync/enum.TryLockError.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部