Skip to main content

serve_runtime_stack_direct_for_test

Function serve_runtime_stack_direct_for_test 

Source
pub fn serve_runtime_stack_direct_for_test(
    config_record: &ServeConfig,
    max_requests: usize,
) -> Result<(), &'static str>
Expand description

Starts the shared runtime in a direct test-oriented path.

§Parameters

  • config_record: Shared-runtime serve configuration under test.
  • max_requests: Maximum number of requests to serve before exiting.

§Returns

Returns the successful value produced by crate::runtime::serve_runtime_stack_direct_for_test or an error when the operation fails.

§Errors

Returns an error value when crate::runtime::serve_runtime_stack_direct_for_test cannot complete successfully.

§Examples

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