pub type NSTDOptionalTimedMutexLockResult<'m, 'a> = NSTDUnixOptionalMutexLockResult<'m, 'a>;Available on crate feature
timed_mutex only.Expand description
An optional value of type NSTDTimedMutexLockResult.
This type is returned from nstd_timed_mutex_try_lock where the uninitialized variant
means that the function would block.
Aliased Type§
#[repr(C, u8)]pub enum NSTDOptionalTimedMutexLockResult<'m, 'a> {
None,
Some(NSTDResult<NSTDUnixMutexGuard<'m, 'a>, NSTDUnixMutexGuard<'m, 'a>>),
}Variants§
None
The uninitialized variant.
Some(NSTDResult<NSTDUnixMutexGuard<'m, 'a>, NSTDUnixMutexGuard<'m, 'a>>)
The initialized variant.