Home
runx-runtime

runx_runtime::execution::runner

Native runtime engine for runx graphs.

Native runtime engine for runx graphs.

The public surface lives here: [Runtime], [RuntimeOptions], [StepRun], [GraphRun], [GraphCheckpoint], and the feature-gated [run_graph_file] helper. The internal state machine and the per-step execution helpers live in private submodules.

Structs §

RuntimeOptions §

pub struct runx_runtime::execution::runner::RuntimeOptions { /* ... */ }

Implementations §

impl RuntimeOptions

local_development

fn local_development() -> Self
#[must_use]

from_process_env

fn from_process_env() -> Result<Self, RuntimeError>

from_env

fn from_env(env: BTreeMap<String, String>) -> Result<Self, RuntimeError>

signature_policy

fn signature_policy(self: &Self) -> RuntimeReceiptSignaturePolicy<'_>
#[must_use]

Trait Implementations §

impl Borrow for RuntimeOptions

borrow

fn borrow(self: &Self) -> &T

impl BorrowMut for RuntimeOptions

borrow_mut

fn borrow_mut(self: &mut Self) -> &mut T

impl CloneToUninit for RuntimeOptions

clone_to_uninit

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl Into for RuntimeOptions

into

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

impl From for RuntimeOptions

from

fn from(t: T) -> T

Returns the argument unchanged.

impl TryInto for RuntimeOptions

Error

try_into

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>

impl TryFrom for RuntimeOptions

Error

try_from

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl Any for RuntimeOptions

type_id

fn type_id(self: &Self) -> TypeId

impl ToOwned for RuntimeOptions

Owned

to_owned

fn to_owned(self: &Self) -> T

clone_into

fn clone_into(self: &Self, target: &mut T)

impl Same for RuntimeOptions

Output

impl Clone for RuntimeOptions

clone

fn clone(self: &Self) -> RuntimeOptions

impl Debug for RuntimeOptions

impl Send for RuntimeOptions

impl Sync for RuntimeOptions

impl Freeze for RuntimeOptions

impl UnsafeUnpin for RuntimeOptions

impl Unpin for RuntimeOptions

impl UnwindSafe for RuntimeOptions

impl RefUnwindSafe for RuntimeOptions

StepRun §

pub struct runx_runtime::execution::runner::StepRun { /* ... */ }

Trait Implementations §

impl Borrow for StepRun

borrow

fn borrow(self: &Self) -> &T

impl BorrowMut for StepRun

borrow_mut

fn borrow_mut(self: &mut Self) -> &mut T

impl CloneToUninit for StepRun

clone_to_uninit

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl Into for StepRun

into

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

impl From for StepRun

from

fn from(t: T) -> T

Returns the argument unchanged.

impl TryInto for StepRun

Error

try_into

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>

impl TryFrom for StepRun

Error

try_from

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl Any for StepRun

type_id

fn type_id(self: &Self) -> TypeId

impl ToOwned for StepRun

Owned

to_owned

fn to_owned(self: &Self) -> T

clone_into

fn clone_into(self: &Self, target: &mut T)

impl Same for StepRun

Output

impl Clone for StepRun

clone

fn clone(self: &Self) -> StepRun

impl Debug for StepRun

impl Serialize for StepRun

serialize

fn serialize( self: &Self, __serializer: __S ) -> _serde::__private228::Result<<__S as >::Ok, <__S as >::Error>

impl Deserialize for StepRun

deserialize

fn deserialize(__deserializer: __D) -> _serde::__private228::Result<Self, <__D as >::Error>

impl Send for StepRun

impl Sync for StepRun

impl Freeze for StepRun

impl UnsafeUnpin for StepRun

impl Unpin for StepRun

impl UnwindSafe for StepRun

impl RefUnwindSafe for StepRun

impl DeserializeOwned for StepRun

GraphRun §

pub struct runx_runtime::execution::runner::GraphRun { /* ... */ }

Trait Implementations §

impl Borrow for GraphRun

borrow

fn borrow(self: &Self) -> &T

impl BorrowMut for GraphRun

borrow_mut

fn borrow_mut(self: &mut Self) -> &mut T

impl CloneToUninit for GraphRun

clone_to_uninit

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl Into for GraphRun

into

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

impl From for GraphRun

from

fn from(t: T) -> T

Returns the argument unchanged.

impl TryInto for GraphRun

Error

try_into

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>

impl TryFrom for GraphRun

Error

try_from

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl Any for GraphRun

type_id

fn type_id(self: &Self) -> TypeId

impl ToOwned for GraphRun

Owned

to_owned

fn to_owned(self: &Self) -> T

clone_into

fn clone_into(self: &Self, target: &mut T)

impl Same for GraphRun

Output

impl Clone for GraphRun

clone

fn clone(self: &Self) -> GraphRun

impl Debug for GraphRun

impl Send for GraphRun

impl Sync for GraphRun

impl Freeze for GraphRun

impl UnsafeUnpin for GraphRun

impl Unpin for GraphRun

impl UnwindSafe for GraphRun

impl RefUnwindSafe for GraphRun

GraphCheckpoint §

pub struct runx_runtime::execution::runner::GraphCheckpoint { /* ... */ }

Trait Implementations §

impl Borrow for GraphCheckpoint

borrow

fn borrow(self: &Self) -> &T

impl BorrowMut for GraphCheckpoint

borrow_mut

fn borrow_mut(self: &mut Self) -> &mut T

impl CloneToUninit for GraphCheckpoint

clone_to_uninit

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl Into for GraphCheckpoint

into

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

impl From for GraphCheckpoint

from

fn from(t: T) -> T

Returns the argument unchanged.

impl TryInto for GraphCheckpoint

Error

try_into

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>

impl TryFrom for GraphCheckpoint

Error

try_from

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl Any for GraphCheckpoint

type_id

fn type_id(self: &Self) -> TypeId

impl ToOwned for GraphCheckpoint

Owned

to_owned

fn to_owned(self: &Self) -> T

clone_into

fn clone_into(self: &Self, target: &mut T)

impl Same for GraphCheckpoint

Output

impl Clone for GraphCheckpoint

clone

fn clone(self: &Self) -> GraphCheckpoint

impl Debug for GraphCheckpoint

impl Serialize for GraphCheckpoint

serialize

fn serialize( self: &Self, __serializer: __S ) -> _serde::__private228::Result<<__S as >::Ok, <__S as >::Error>

impl Deserialize for GraphCheckpoint

deserialize

fn deserialize(__deserializer: __D) -> _serde::__private228::Result<Self, <__D as >::Error>

impl Send for GraphCheckpoint

impl Sync for GraphCheckpoint

impl Freeze for GraphCheckpoint

impl UnsafeUnpin for GraphCheckpoint

impl Unpin for GraphCheckpoint

impl UnwindSafe for GraphCheckpoint

impl RefUnwindSafe for GraphCheckpoint

impl DeserializeOwned for GraphCheckpoint

Runtime §

pub struct runx_runtime::execution::runner::Runtime { /* ... */ }

Implementations §

impl Runtime

new

fn new(adapter: A, options: RuntimeOptions) -> Self

run_graph_file

fn run_graph_file(self: &Self, graph_path: &Path) -> Result<GraphRun, RuntimeError>

run_graph_file_with_host

fn run_graph_file_with_host( self: &Self, graph_path: &Path, host: &mut dyn Host ) -> Result<GraphRun, RuntimeError>

run_graph_with_host

fn run_graph_with_host( self: &Self, graph_dir: &Path, graph: ExecutionGraph, host: &mut dyn Host ) -> Result<GraphRun, RuntimeError>

run_graph_file_until_steps

fn run_graph_file_until_steps( self: &Self, graph_path: &Path, max_steps: usize ) -> Result<GraphCheckpoint, RuntimeError>

run_graph_file_until_steps_with_host

fn run_graph_file_until_steps_with_host( self: &Self, graph_path: &Path, max_steps: usize, host: &mut dyn Host ) -> Result<GraphCheckpoint, RuntimeError>

run_graph_until_steps_with_host

fn run_graph_until_steps_with_host( self: &Self, graph_dir: &Path, graph: &ExecutionGraph, max_steps: usize, host: &mut dyn Host ) -> Result<GraphCheckpoint, RuntimeError>

resume_graph_file

fn resume_graph_file( self: &Self, graph_path: &Path, checkpoint: GraphCheckpoint ) -> Result<GraphRun, RuntimeError>

resume_graph_file_with_host

fn resume_graph_file_with_host( self: &Self, graph_path: &Path, checkpoint: GraphCheckpoint, host: &mut dyn Host ) -> Result<GraphRun, RuntimeError>

resume_graph_with_host

fn resume_graph_with_host( self: &Self, graph_dir: &Path, graph: ExecutionGraph, checkpoint: GraphCheckpoint, host: &mut dyn Host ) -> Result<GraphRun, RuntimeError>

resume_graph_until_steps_with_host

fn resume_graph_until_steps_with_host( self: &Self, graph_dir: &Path, graph: &ExecutionGraph, checkpoint: GraphCheckpoint, max_steps: usize, host: &mut dyn Host ) -> Result<GraphCheckpoint, RuntimeError>

Trait Implementations §

impl Borrow for Runtime

borrow

fn borrow(self: &Self) -> &T

impl BorrowMut for Runtime

borrow_mut

fn borrow_mut(self: &mut Self) -> &mut T

impl Into for Runtime

into

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

impl From for Runtime

from

fn from(t: T) -> T

Returns the argument unchanged.

impl TryInto for Runtime

Error

try_into

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>

impl TryFrom for Runtime

Error

try_from

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl Any for Runtime

type_id

fn type_id(self: &Self) -> TypeId

impl Same for Runtime

Output

impl Send for Runtime

impl Sync for Runtime

impl Freeze for Runtime

impl UnsafeUnpin for Runtime

impl Unpin for Runtime

impl UnwindSafe for Runtime

impl RefUnwindSafe for Runtime

Constants §

RUNX_MAX_FANOUT_CONCURRENCY_ENV §

pub const runx_runtime::execution::runner::RUNX_MAX_FANOUT_CONCURRENCY_ENV: &str = "RUNX_MAX_FANOUT_CONCURRENCY";

RUNX_RUN_ID_ENV §

pub const runx_runtime::execution::runner::RUNX_RUN_ID_ENV: &str = "RUNX_RUN_ID";