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>),}