#[non_exhaustive]pub enum PocketIcStartupFailure {
Show 17 variants
NotConfigured,
InvalidEnvironment {
variable: &'static str,
},
ServerVersionProbe {
source: ToolError,
},
ServerVersionMismatch {
expected: String,
observed: Vec<u8>,
},
CommandRun {
program: PathBuf,
source: Error,
},
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,
},
ReadinessTimeout {
server_binary: PathBuf,
timeout: Duration,
},
InvalidServerPort {
server_binary: PathBuf,
value: String,
},
InstanceCreationTimeout {
timeout: Duration,
},
BuilderThreadSpawn {
source: Error,
},
BuilderPanicked {
message: String,
},
BuilderDisconnected,
ServerCleanup {
command_status: ExitStatus,
},
}Expand description
Original failure, independent of output capture and cleanup outcomes.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
NotConfigured
Neither the shared server URL nor an explicit executable was configured.
InvalidEnvironment
A selected environment value was empty or was not valid Unicode.
ServerVersionProbe
The bounded version probe failed, including nonzero exit or timeout.
ServerVersionMismatch
The selected executable does not report the qualified server identity.
CommandRun
Command execution failed.
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 during construction or command execution.
ReadinessTimeout
The managed server did not publish a usable port before the deadline.
InvalidServerPort
The managed server published an invalid or oversized 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.
ServerCleanup
The command completed, but the owned server could not be cleaned up.
Fields
command_status: ExitStatusTrait Implementations§
Source§impl Debug for PocketIcStartupFailure
impl Debug for PocketIcStartupFailure
Source§impl Display for PocketIcStartupFailure
impl Display for PocketIcStartupFailure
Source§impl Error for PocketIcStartupFailure
impl Error for PocketIcStartupFailure
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()