INNER CODE UNIT · Rust
into_inner
tlsnotary/tlsn · crates/components/deap/src/lib.rs:63
pub fn into_inner(self) -> (Mpc, Zk) {
(
Arc::into_inner(self.mpc).unwrap().into_inner(),
Arc::into_inner(self.zk).unwrap().into_inner(),
)
}
/// Returns a mutable reference to the ZK VM.
///
/// # Panics
///
/// Panics if the mutex is locked by another thread.
pub fn zk(&self) -> MutexGuard<'_, Zk> {
self.zk.try_lock().unwrap()
}
/// Returns an owned mutex guard to the ZK VM.
///