pub struct PocketIcManagedServer { /* private fields */ }Expand description
Caller-owned PocketIC server process with bounded startup and output capture.
Dropping the handle terminates and waits for the managed child. Callers may
create several instances through Self::url and
PocketIcStartupConfig::connect while retaining explicit server ownership.
The handle is process-local and does not coordinate ownership across Cargo
or test-runner processes; use an externally owned server with bounded
connect mode for that topology.
The handle owns no binary discovery, download, cache, or compatibility policy.
Implementations§
Source§impl PocketIcManagedServer
impl PocketIcManagedServer
Sourcepub fn process_id(&self) -> u32
pub fn process_id(&self) -> u32
OS process ID of the owned server child, for caller-managed monitoring.
This identifies the server process, not its descendants, and does not establish that it is still running. The OS may reuse the ID after the child exits and is reaped. Dropping this handle terminates and waits for the child; retaining the ID does not retain server ownership.
Sourcepub fn output(&self) -> PocketIcManagedServerOutput
pub fn output(&self) -> PocketIcManagedServerOutput
Current bounded stdout and stderr captured from the managed server.
This reads a snapshot of each retained output file. Each stream is limited to 16 KiB and carries an omitted-byte suffix when truncated.