Movatterモバイル変換


[0]ホーム

URL:


TryLockResult

std::sync

Type AliasTryLockResult 

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, seeLockResult. ATryLockResult doesn’tnecessarily hold the associated guard in theErr type as the lock might nothave 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


[8]ページ先頭

©2009-2026 Movatter.jp