std::sync::TryLockResult

Type Definition std::sync::TryLockResult

type TryLockResult<Guard> = Result<Guard, TryLockError<Guard>>;

A type alias for the result of a nonblocking locking method.

For more information, see LockResult. A TryLockResult doesn't necessarily hold the associated guard in the Err type as the lock may not have been acquired for other reasons.

© 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/type.TryLockResult.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部