zephyr::sync

Type Alias LockResult

source
pub type LockResult<Guard> = Result<Guard, ()>;
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(()),
}

Variants§

§1.0.0

Ok(Guard)

Contains the success value

§1.0.0

Err(())

Contains the error value