Content-Length: 8721 | pFad | https://doc.rust-lang.org/reference/../std/../std/vec/../cmp/../sync/type.TryLockResult.html

TryLockResult in std::sync - Rust

TryLockResult

Type Alias TryLockResult 

1.0.0 · Source
pub type TryLockResult<Guard> = Result<Guard, TryLockError<Guard>>;
Expand description

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 might not have been acquired for other reasons.

Aliased Type§

pub enum TryLockResult<Guard> {
    Ok(Guard),
    Err(TryLockError<Guard>),
}

Variants§

§1.0.0

Ok(Guard)

Contains the success value

§1.0.0

Err(TryLockError<Guard>)

Contains the error value









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://doc.rust-lang.org/reference/../std/../std/vec/../cmp/../sync/type.TryLockResult.html

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy