(&self)
| 1350 | } |
| 1351 | |
| 1352 | fn check_ready(&self) -> Result<()> { |
| 1353 | if self.closing { |
| 1354 | bail!("Pglite instance is closing"); |
| 1355 | } |
| 1356 | if self.closed { |
| 1357 | bail!("Pglite instance is closed"); |
| 1358 | } |
| 1359 | if !self.ready { |
| 1360 | bail!("Pglite instance is not ready"); |
| 1361 | } |
| 1362 | Ok(()) |
| 1363 | } |
| 1364 | } |
| 1365 | |
| 1366 | impl Drop for Pglite { |
no outgoing calls
no test coverage detected