zephyr::sync

Type Alias LockResult

Source
pub type LockResult<Guard> = Result<Guard, Infallible>;
Expand description

Until poisoning is implemented, mutexes never return an error, and we just get back the guard.

Aliased Type§

enum LockResult<Guard> {
    Ok(Guard),
    Err(Infallible),
}

Variants§

§1.0.0

Ok(Guard)

Contains the success value

§1.0.0

Err(Infallible)

Contains the error value