/// Acquires a mutex, blocking the current thread until it is able to do so.
Acquires a mutex, blocking the current thread until it is able to do so.
Acquires a mutex blocking the current thread until it is able to do so .
pub fn lock(&self) -> LockResult<MutexGuard<'_, T>> {
        self.acquire();
        Ok(MutexGuard {
            lock: self,
            data: Some(self.data.borrow_mut()),
        })
    }
pub fn lock ( & self ) -> LockResult < MutexGuard < ' _ , T > > { self . acquire ( ) ; Ok ( MutexGuard { lock : self , data : Some ( self . data . borrow_mut ( ) ) , } ) }
Acquires a mutex, blocking the current thread until it is able to do so.
Acquires a mutex blocking the current thread until it is able to do so .
&self