Skip to main content

maybe_seed_app_state

Function maybe_seed_app_state 

Source
pub fn maybe_seed_app_state(app: &AppRuntime) -> Result<bool, i32>
Expand description

Seeds a missing state file only when the caller explicitly requests seeding.

§Parameters

§Returns

Returns the successful value produced by crate::binaries::maybe_seed_app_state or an error when the operation fails.

§Errors

Returns an error value when crate::binaries::maybe_seed_app_state cannot complete successfully.

§Examples

ⓘ
let _result = pharos_native::binaries::maybe_seed_app_state(todo!());
  • crate::binaries for adjacent helpers that share the same runtime surface.