pub struct RuntimeHandle { /* private fields */ }Expand description
RuntimeHandle holds the execution dependencies needed to invoke the runtime. It is constructed with an expanded graph, primitive catalog, registries, and adapter provides.
Implementations§
Source§impl RuntimeHandle
impl RuntimeHandle
pub fn new( graph: Arc<ExpandedGraph>, catalog: Arc<CorePrimitiveCatalog>, registries: Arc<CoreRegistries>, adapter_provides: AdapterProvides, ) -> Self
pub fn run( &self, graph_id: &GraphId, event_id: &EventId, ctx: &ExecutionContext, deadline: Option<Duration>, ) -> RunTermination
Sourcepub fn graph_emittable_effect_kinds(&self) -> HashSet<String>
pub fn graph_emittable_effect_kinds(&self) -> HashSet<String>
Derive effect kinds that this composed graph can emit based on registered action manifests.
Trait Implementations§
Source§impl Clone for RuntimeHandle
impl Clone for RuntimeHandle
Source§fn clone(&self) -> RuntimeHandle
fn clone(&self) -> RuntimeHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl RuntimeInvoker for RuntimeHandle
impl RuntimeInvoker for RuntimeHandle
fn run( &self, graph_id: &GraphId, event_id: &EventId, ctx: &ExecutionContext, deadline: Option<Duration>, ) -> RunTermination
Auto Trait Implementations§
impl !RefUnwindSafe for RuntimeHandle
impl !Send for RuntimeHandle
impl !Sync for RuntimeHandle
impl !UnwindSafe for RuntimeHandle
impl Freeze for RuntimeHandle
impl Unpin for RuntimeHandle
impl UnsafeUnpin for RuntimeHandle
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