#[non_exhaustive]pub enum PocketIcStartupError {
InvalidConfiguration {
message: String,
},
InvalidServerUrl {
server_url: String,
message: String,
},
Io {
operation: &'static str,
path: PathBuf,
source: Error,
},
ServerSpawn {
server_binary: PathBuf,
source: Error,
},
ServerExited {
server_binary: PathBuf,
status: ExitStatus,
elapsed: Duration,
stdout: String,
stderr: String,
},
ReadinessTimeout {
server_binary: PathBuf,
timeout: Duration,
stdout: String,
stderr: String,
termination_error: Option<String>,
},
InvalidServerPort {
server_binary: PathBuf,
value: String,
stdout: String,
stderr: String,
},
InstanceCreationTimeout {
timeout: Duration,
stdout: String,
stderr: String,
termination_error: Option<String>,
},
BuilderThreadSpawn {
source: Error,
},
BuilderPanicked {
message: String,
},
BuilderDisconnected,
}Expand description
Structured failure from bounded PocketIC construction.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidConfiguration
The caller supplied a zero timeout or unusable hard TTL.
InvalidServerUrl
A caller-provided existing server URL could not be parsed.
Io
Preparing or inspecting bounded startup files failed.
ServerSpawn
The configured PocketIC server process could not be spawned.
ServerExited
The managed PocketIC server exited before instance construction completed.
ReadinessTimeout
The managed server did not publish a usable port before the deadline.
Fields
InvalidServerPort
The managed server published an invalid port-file value.
InstanceCreationTimeout
PocketIC instance creation did not finish before the startup deadline.
BuilderThreadSpawn
Spawning the bounded builder worker failed.
BuilderPanicked
Upstream PocketIC construction panicked before returning an instance.
BuilderDisconnected
The bounded builder worker ended without returning a result.
Trait Implementations§
Source§impl Debug for PocketIcStartupError
impl Debug for PocketIcStartupError
Source§impl Display for PocketIcStartupError
impl Display for PocketIcStartupError
Source§impl Error for PocketIcStartupError
impl Error for PocketIcStartupError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()