INNER CODE UNIT · Rust
Some
Augani/dory · dory-core/ffi/src/lib.rs:147
if let Some(handle) = self.task.lock().unwrap().take() {
handle.abort();
}
}
}
impl Drop for DoryDataplane {
fn drop(&mut self) {
if let Some(runtime) = self.runtime.lock().unwrap().take() {
runtime.shutdown_background();
}
}
}
/// Start serving docker on `listen_fd` (an already-bound AF_UNIX listener the caller owns and hands
/// over), proxying to the guest `dockerd` reachable at `dockerd_socket_path`. Two worker threads —
/// dev-tool traffic doesn't need more, and idle RSS stays small.
#[uniffi::export]