maitake_sync

Type Alias WaitResult

Source
pub type WaitResult<T> = Result<T, Closed>;
Expand description

The result of waiting on a WaitQueue or Semaphore.

Aliased Type§

enum WaitResult<T> {
    Ok(T),
    Err(Closed),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(Closed)

Contains the error value