runx_runtime::execution::runner
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 §
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) -> &Timpl BorrowMut for RuntimeOptions
borrow_mut
fn borrow_mut(self: &mut Self) -> &mut Timpl 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) -> UCalls U::from(self).
That is, this conversion is whatever the implementation of
chooses to do.From<T> for U
impl From for RuntimeOptions
from
fn from(t: T) -> TReturns 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) -> TypeIdimpl ToOwned for RuntimeOptions
Owned
to_owned
fn to_owned(self: &Self) -> Tclone_into
fn clone_into(self: &Self, target: &mut T)impl Same for RuntimeOptions
Output
impl Clone for RuntimeOptions
clone
fn clone(self: &Self) -> RuntimeOptionsimpl Debug for RuntimeOptions
fmt
fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Resultimpl 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 §
Trait Implementations §
impl Borrow for StepRun
borrow
fn borrow(self: &Self) -> &Timpl BorrowMut for StepRun
borrow_mut
fn borrow_mut(self: &mut Self) -> &mut Timpl 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) -> UCalls U::from(self).
That is, this conversion is whatever the implementation of
chooses to do.From<T> for U
impl From for StepRun
from
fn from(t: T) -> TReturns 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) -> TypeIdimpl ToOwned for StepRun
Owned
to_owned
fn to_owned(self: &Self) -> Tclone_into
fn clone_into(self: &Self, target: &mut T)impl Same for StepRun
Output
impl Clone for StepRun
clone
fn clone(self: &Self) -> StepRunimpl Debug for StepRun
fmt
fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Resultimpl 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 §
Trait Implementations §
impl Borrow for GraphRun
borrow
fn borrow(self: &Self) -> &Timpl BorrowMut for GraphRun
borrow_mut
fn borrow_mut(self: &mut Self) -> &mut Timpl 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) -> UCalls U::from(self).
That is, this conversion is whatever the implementation of
chooses to do.From<T> for U
impl From for GraphRun
from
fn from(t: T) -> TReturns 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) -> TypeIdimpl ToOwned for GraphRun
Owned
to_owned
fn to_owned(self: &Self) -> Tclone_into
fn clone_into(self: &Self, target: &mut T)impl Same for GraphRun
Output
impl Clone for GraphRun
clone
fn clone(self: &Self) -> GraphRunimpl Debug for GraphRun
fmt
fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Resultimpl 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 §
Trait Implementations §
impl Borrow for GraphCheckpoint
borrow
fn borrow(self: &Self) -> &Timpl BorrowMut for GraphCheckpoint
borrow_mut
fn borrow_mut(self: &mut Self) -> &mut Timpl 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) -> UCalls U::from(self).
That is, this conversion is whatever the implementation of
chooses to do.From<T> for U
impl From for GraphCheckpoint
from
fn from(t: T) -> TReturns 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) -> TypeIdimpl ToOwned for GraphCheckpoint
Owned
to_owned
fn to_owned(self: &Self) -> Tclone_into
fn clone_into(self: &Self, target: &mut T)impl Same for GraphCheckpoint
Output
impl Clone for GraphCheckpoint
clone
fn clone(self: &Self) -> GraphCheckpointimpl Debug for GraphCheckpoint
fmt
fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Resultimpl 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 §
Implementations §
impl Runtime
new
fn new(adapter: A, options: RuntimeOptions) -> Selfrun_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) -> &Timpl BorrowMut for Runtime
borrow_mut
fn borrow_mut(self: &mut Self) -> &mut Timpl Into for Runtime
into
fn into(self: Self) -> UCalls U::from(self).
That is, this conversion is whatever the implementation of
chooses to do.From<T> for U
impl From for Runtime
from
fn from(t: T) -> TReturns the argument unchanged.