Trait completest_pty::RuntimeBuilder

source ·
pub trait RuntimeBuilder: Debug {
    type Runtime: Runtime;

    // Required methods
    fn name() -> &'static str;
    fn new(bin_root: PathBuf, home: PathBuf) -> Result<Self::Runtime, Error>;
    fn with_home(
        bin_root: PathBuf,
        home: PathBuf,
    ) -> Result<Self::Runtime, Error>;
}
Available on Unix only.
Expand description

Abstract factory for Runtime

Required Associated Types§

source

type Runtime: Runtime

The Runtime being built

Required Methods§

source

fn name() -> &'static str

Name for the runtime (useful for defining a home)

source

fn new(bin_root: PathBuf, home: PathBuf) -> Result<Self::Runtime, Error>

Initialize a new runtime’s home

source

fn with_home(bin_root: PathBuf, home: PathBuf) -> Result<Self::Runtime, Error>

Reuse an existing runtime’s home

Object Safety§

This trait is not object safe.

Implementors§