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 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.
Auto Trait Implementations§
impl Freeze for PocketIcManagedServer
impl RefUnwindSafe for PocketIcManagedServer
impl Send for PocketIcManagedServer
impl Sync for PocketIcManagedServer
impl Unpin for PocketIcManagedServer
impl UnsafeUnpin for PocketIcManagedServer
impl UnwindSafe for PocketIcManagedServer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more