pub async fn instance() -> Result<PocketIc, String>Expand description
Create an instance on the explicitly supplied external server.
Never discovers/downloads a binary, starts a server or creates a Tokio runtime.
Call the upstream async drop explicitly to attempt deletion. The external
launcher owns shutdown, including after a test panic; deletion is best-effort.
§Errors
Refuses absent/invalid configuration or creation timeout. Timeout/cancellation can leave an instance on the external server; no successful cleanup is implied.
§Panics
Requires the caller’s Tokio runtime; upstream construction panics propagate.