/// Tries to acquire the mutex
///
/// If acquiring the mutex is successful, a [`GenericMutexGuard`]
/// will be returned, which allows to access the contained data.
///
/// Otherwise `None` will be returned.
Tries to acquire the mutex
If acquiring the mutex is successful, a [`GenericMutexGuard`]
will be returned, which allows to access the contained data.

Otherwise `None` will be returned.
Tries to acquire the mutex If acquiring the mutex is successful a [ ` GenericMutexGuard ` ] will be returned which allows to access the contained data . Otherwise ` None ` will be returned .
pub fn try_lock(&self) -> Option<GenericMutexGuard<'_, MutexType, T>> {
        if self.state.lock().try_lock_sync() {
            Some(GenericMutexGuard { mutex: self })
        } else {
            None
        }
    }
pub fn try_lock ( & self ) -> Option < GenericMutexGuard < ' _ , MutexType , T > > { if self . state . lock ( ) . try_lock_sync ( ) { Some ( GenericMutexGuard { mutex : self } ) } else { None } }
Tries to acquire the mutex
If acquiring the mutex is successful, a [`GenericMutexGuard`]
will be returned, which allows to access the contained data.
Tries to acquire the mutex If acquiring the mutex is successful a [ ` GenericMutexGuard ` ] will be returned which allows to access the contained data .
&self