Track claimed outbound HTLCs in ChannelMonitors
[rust-lightning] / lightning / src / sync / nostd_sync.rs
index 858f60db5b5b46a5bb703f2d454d8d2b2c1f2934..17307997d8176cc2b82a0d9559307971f3e2c252 100644 (file)
@@ -60,6 +60,10 @@ impl<T> Mutex<T> {
        pub fn try_lock<'a>(&'a self) -> LockResult<MutexGuard<'a, T>> {
                Ok(MutexGuard { lock: self.inner.borrow_mut() })
        }
+
+       pub fn into_inner(self) -> LockResult<T> {
+               Ok(self.inner.into_inner())
+       }
 }
 
 impl<'a, T: 'a> LockTestExt<'a> for Mutex<T> {