pub trait PocketIcBuilderExt {
// Required method
fn try_build(self) -> Result<PocketIc, PocketIcStartupError>;
}Expand description
Fallible construction at PocketIC’s currently panicking builder boundary.
This trait adds one operation rather than forwarding the builder API.
Required Methods§
Sourcefn try_build(self) -> Result<PocketIc, PocketIcStartupError>
fn try_build(self) -> Result<PocketIc, PocketIcStartupError>
Build one PocketIC instance while capturing an upstream startup panic.
This method deliberately does not classify panic text. It exists so a test harness can apply its own bounded retry policy until PocketIC provides a native fallible builder API. PocketIC’s installed panic hook may still print before unwinding reaches this boundary.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".