Type Alias TryLockResult

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

A type alias for the result of a nonblocking locking method.

Aliased Type§

pub 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