pub type NSTDUnixOptionalMutexLockResult<'m, 'a> = NSTDOptional<NSTDUnixMutexLockResult<'m, 'a>>;Available on crate feature
os_unix_mutex only.Expand description
An optional value of type NSTDUnixMutexLockResult.
This type is returned from the nstd_os_unix_mutex_try_lock where the uninitialized variant
means that the function would block.
Aliased Type§
#[repr(C, u8)]pub enum NSTDUnixOptionalMutexLockResult<'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.