pub struct TestDaemonHandle { /* private fields */ }Expand description
Handle to a daemon spawned for testing.
Implementations§
Source§impl TestDaemonHandle
impl TestDaemonHandle
Sourcepub async fn health_check(&self) -> Result<HealthStatus>
pub async fn health_check(&self) -> Result<HealthStatus>
Performs a health check on the daemon.
Checks:
- Process is running (via adapter status)
- Process is responsive (can receive signal 0)
- Optional: memory/CPU within limits
§Errors
Returns an error if health check encounters an error.
Sourcepub const fn handle(&self) -> &DaemonHandle
pub const fn handle(&self) -> &DaemonHandle
Returns the inner daemon handle.
Sourcepub const fn chaos(&self) -> Option<&ChaosConfig>
pub const fn chaos(&self) -> Option<&ChaosConfig>
Returns the chaos config, if any.
Auto Trait Implementations§
impl Freeze for TestDaemonHandle
impl !RefUnwindSafe for TestDaemonHandle
impl Send for TestDaemonHandle
impl Sync for TestDaemonHandle
impl Unpin for TestDaemonHandle
impl !UnwindSafe for TestDaemonHandle
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