FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    RestartSupervisor

    struct · ferroui-hot-patch · v0.5.0

    struct RestartSupervisor
    

    View source

    Members

    new

    fn new(current: Child) -> Self
    

    Source

    current_id

    fn current_id(self: &Self) -> u32
    

    Source

    current_is_running

    fn current_is_running(self: &mut Self) -> io::Result<bool>
    

    Source

    supersede

    fn supersede(self: &mut Self, revision: u64) -> io::Result<()>
    

    Marks all earlier build/startup work stale without interrupting the running application.

    Source

    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.

    Source

    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.

    Source

    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.

    Source

    poll_replacement

    fn poll_replacement(self: &mut Self) -> io::Result<ReplacementStatus>
    

    Source

    commit

    fn commit(self: &mut Self) -> io::Result<()>
    

    Retires the old process only after an explicit successful startup acknowledgement.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • Drop

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.