pub struct HogdDevProcess { /* private fields */ }Expand description
Running hogd-dev child process plus its parsed readiness metadata.
Implementations§
Source§impl HogdDevProcess
impl HogdDevProcess
Sourcepub async fn start(config: &HogdDevConfig) -> Result<Self, NodeSupervisorError>
pub async fn start(config: &HogdDevConfig) -> Result<Self, NodeSupervisorError>
Start hog-devnode using the configured binary lookup.
Sourcepub async fn start_with_binary(
config: &HogdDevConfig,
binary: impl AsRef<Path>,
) -> Result<Self, NodeSupervisorError>
pub async fn start_with_binary( config: &HogdDevConfig, binary: impl AsRef<Path>, ) -> Result<Self, NodeSupervisorError>
Start hog-devnode from an already-resolved binary path.
Sourcepub fn readiness(&self) -> &HogdDevReadiness
pub fn readiness(&self) -> &HogdDevReadiness
Parsed readiness metadata.
Sourcepub async fn stopped(&mut self) -> Result<ExitStatus, NodeSupervisorError>
pub async fn stopped(&mut self) -> Result<ExitStatus, NodeSupervisorError>
Wait for hogd-dev to exit.
Sourcepub async fn stop(&mut self) -> Result<ExitStatus, NodeSupervisorError>
pub async fn stop(&mut self) -> Result<ExitStatus, NodeSupervisorError>
Gracefully stop hogd-dev, escalating after the configured timeout.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for HogdDevProcess
impl !UnwindSafe for HogdDevProcess
impl Freeze for HogdDevProcess
impl Send for HogdDevProcess
impl Sync for HogdDevProcess
impl Unpin for HogdDevProcess
impl UnsafeUnpin for HogdDevProcess
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