pub struct QaConfig {
pub app: String,
pub app_root: PathBuf,
pub scenario_dirs: Vec<PathBuf>,
pub env: BTreeMap<String, String>,
pub engine: EngineConfig,
pub ui: UiConfig,
pub audio: AudioConfig,
pub lock: LockConfig,
pub default_tier: String,
pub config_path: PathBuf,
}Fields§
§app: String§app_root: PathBuf§scenario_dirs: Vec<PathBuf>§env: BTreeMap<String, String>§engine: EngineConfig§ui: UiConfig§audio: AudioConfig§lock: LockConfig§default_tier: String§config_path: PathBufImplementations§
Source§impl QaConfig
impl QaConfig
pub fn load(path: &Path) -> Result<Self>
pub fn parse(text: &str, path: &Path) -> Result<Self>
pub fn engine_binary(&self) -> Result<Option<PathBuf>>
pub fn ui_binary(&self) -> Result<Option<PathBuf>>
Sourcepub fn resolve_ui_binary(&self) -> Result<ResolvedBinary>
pub fn resolve_ui_binary(&self) -> Result<ResolvedBinary>
The dev executable for this app: env override, pointer file, the broker’s target root, then
the ui.binaries path (see crate::binary), always returned as the fixed stash copy
(<app root>/.rightkit-qa-bin/..., copied in place with a kept .previous), never a broker
generation path. source names where the build was found. Errors when none of them holds a
valid file.
Sourcepub fn resolve_ui_binary_stashed_with(
&self,
broker_root: Option<PathBuf>,
env: &dyn Fn(&str) -> Option<String>,
) -> Result<ResolvedBinary>
pub fn resolve_ui_binary_stashed_with( &self, broker_root: Option<PathBuf>, env: &dyn Fn(&str) -> Option<String>, ) -> Result<ResolvedBinary>
Self::resolve_ui_binary with the broker root and env supplied (tests, odd layouts).
Sourcepub fn resolve_ui_binary_with(
&self,
broker_root: Option<PathBuf>,
env: &dyn Fn(&str) -> Option<String>,
) -> Result<ResolvedBinary>
pub fn resolve_ui_binary_with( &self, broker_root: Option<PathBuf>, env: &dyn Fn(&str) -> Option<String>, ) -> Result<ResolvedBinary>
Discovery only, without the stash copy: where the build is now (which may be a broker
generation path). Launches use Self::resolve_ui_binary, never this path.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QaConfig
impl RefUnwindSafe for QaConfig
impl Send for QaConfig
impl Sync for QaConfig
impl Unpin for QaConfig
impl UnsafeUnpin for QaConfig
impl UnwindSafe for QaConfig
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