zephyr::sync

Type Alias TryLockResult

source
pub type TryLockResult<Guard> = Result<Guard, TryLockError>;
Expand description

The return type from Mutex::try_lock.

The error indicates the reason for the failure. Until poisoning is implemented, there is only a single type of failure.

Aliased Type§

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

Variants§

§1.0.0

Ok(Guard)

Contains the success value

§1.0.0

Err(TryLockError)

Contains the error value