Skip to main content

TryLockResult

Type Alias TryLockResult 

Source
pub type TryLockResult<T> = Result<T, GlommioError<()>>;
Expand description

A type alias for the result of a non-suspending locking method.

Aliased Type§

pub enum TryLockResult<T> {
    Ok(T),
    Err(GlommioError<()>),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(GlommioError<()>)

Contains the error value