RestartSupervisor
struct · ferroui-hot-patch · v0.5.0
struct RestartSupervisor
Members
new
fn new(current: Child) -> Self
current_id
fn current_id(self: &Self) -> u32
current_is_running
fn current_is_running(self: &mut Self) -> io::Result<bool>
supersede
fn supersede(self: &mut Self, revision: u64) -> io::Result<()>
Marks all earlier build/startup work stale without interrupting the running application.
build
fn build(self: &mut Self, revision: u64, command: &mut Command) -> io::Result<()>
Command must build into an isolated output path; never overwrite the running executable. Configure stdout/stderr as files or inherited streams, not unconsumed pipes.
poll_build
fn poll_build(self: &mut Self) -> io::Result<Option<BuiltRevision>>
None means the build is still running. Failure and supersession never retire the old process.
launch
fn launch(self: &mut Self, ticket: BuiltRevision, command: &mut Command, state: &RestartState, timeout: Duration) -> io::Result<()>
The supplied command must run the artifact produced by the ticket's build. State is captured after building, so edits made while the compiler runs are retained.
poll_replacement
fn poll_replacement(self: &mut Self) -> io::Result<ReplacementStatus>
commit
fn commit(self: &mut Self) -> io::Result<()>
Retires the old process only after an explicit successful startup acknowledgement.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyDrop
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.