NSTDOptionalMutexLockResult

Type Alias NSTDOptionalMutexLockResult 

Source
pub type NSTDOptionalMutexLockResult<'m, 'a> = NSTDOptional<NSTDMutexLockResult<'m, 'a>>;
Available on crate feature mutex only.
Expand description

An optional value of type NSTDMutexLockResult.

This type is returned from nstd_mutex_try_lock where the uninitialized variant means that the function would block.

Aliased Type§

#[repr(C, u8)]
pub enum NSTDOptionalMutexLockResult<'m, 'a> { None, Some(NSTDResult<NSTDMutexGuard<'m, 'a>, NSTDMutexGuard<'m, 'a>>), }

Variants§

§

None

The uninitialized variant.

§

Some(NSTDResult<NSTDMutexGuard<'m, 'a>, NSTDMutexGuard<'m, 'a>>)

The initialized variant.