Skip to main content

PocketIcBuilderExt

Trait PocketIcBuilderExt 

Source
pub trait PocketIcBuilderExt {
    // Required method
    fn try_build(self) -> Result<PocketIc, PocketIcStartupError>;
}
Expand description

Fallible construction at PocketIC’s currently panicking builder boundary.

Required Methods§

Source

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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§