pub struct RuntimeContext { /* private fields */ }Expand description
Loaded + compiled graph context. Reusable across multiple execute() calls.
Implementations§
Source§impl RuntimeContext
impl RuntimeContext
Sourcepub fn load(
graph_path: &Path,
brick_dir: &Path,
brick_map: Option<&Path>,
) -> Result<Self>
pub fn load( graph_path: &Path, brick_dir: &Path, brick_map: Option<&Path>, ) -> Result<Self>
Load from file paths (CLI convenience).
Sourcepub fn from_graph(
graph: GraphManifest,
brick_dir: &Path,
brick_map: &Option<BrickMap>,
) -> Result<Self>
pub fn from_graph( graph: GraphManifest, brick_dir: &Path, brick_map: &Option<BrickMap>, ) -> Result<Self>
Build from a pre-parsed GraphManifest (for embedding / Phase 3A).
Sourcepub fn emit_runtime_info(&self, tracer: &mut dyn TraceSink)
pub fn emit_runtime_info(&self, tracer: &mut dyn TraceSink)
Emit the runtime_info trace record.
pub fn graph_id(&self) -> &str
pub fn graph_version(&self) -> &str
pub fn node_count(&self) -> usize
pub fn edge_count(&self) -> usize
pub fn entry_node_id(&self) -> &str
pub fn resolved_bricks(&self) -> &[ResolvedBrickInfo]
Sourcepub fn execute(
&self,
json_input: &Value,
tracer: &mut dyn TraceSink,
hooks: &mut ExecuteHooks<'_>,
opts: &ExecuteOptions,
) -> Result<ExecutionReport>
pub fn execute( &self, json_input: &Value, tracer: &mut dyn TraceSink, hooks: &mut ExecuteHooks<'_>, opts: &ExecuteOptions, ) -> Result<ExecutionReport>
Execute the graph with the given input.
Auto Trait Implementations§
impl Freeze for RuntimeContext
impl !RefUnwindSafe for RuntimeContext
impl Send for RuntimeContext
impl Sync for RuntimeContext
impl Unpin for RuntimeContext
impl UnsafeUnpin for RuntimeContext
impl !UnwindSafe for RuntimeContext
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more