pg_embed/pg_types.rs
1use std::cell::Cell;
2
3/// Synchronous pg_ctl command type.
4///
5/// `Cell` provides interior mutability so the synchronous `pg_ctl stop` command
6/// can be configured and spawned inside the `Drop` implementation without requiring
7/// a mutable reference to the surrounding struct.
8pub type PgCommandSync = Box<Cell<std::process::Command>>;