pub struct ExecutableGraph { /* private fields */ }Expand description
One declarative graph with all executable bindings frozen and verified.
Implementations§
Source§impl ExecutableGraph
impl ExecutableGraph
Sourcepub fn graph(&self) -> &CompiledGraph
pub fn graph(&self) -> &CompiledGraph
Returns the exact immutable declarative graph.
Sourcepub const fn schemas(&self) -> &JsonSchemaRegistry
pub const fn schemas(&self) -> &JsonSchemaRegistry
Returns the frozen offline schema registry.
Sourcepub fn reducer(&self) -> &(dyn GraphReducer + 'static)
pub fn reducer(&self) -> &(dyn GraphReducer + 'static)
Returns the exactly pinned pure reducer.
Sourcepub fn node(
&self,
node_id: &NodeId,
) -> Option<&(dyn GraphNodeExecutor + 'static)>
pub fn node( &self, node_id: &NodeId, ) -> Option<&(dyn GraphNodeExecutor + 'static)>
Resolves one exact compiled node implementation.
Sourcepub fn node_executor(
&self,
node_id: &NodeId,
) -> Option<Arc<dyn GraphNodeExecutor>>
pub fn node_executor( &self, node_id: &NodeId, ) -> Option<Arc<dyn GraphNodeExecutor>>
Resolves a shared executor handle suitable for an owned async task.
Sourcepub fn node_count(&self) -> usize
pub fn node_count(&self) -> usize
Returns the number of executable node bindings.
Trait Implementations§
Source§impl Clone for ExecutableGraph
impl Clone for ExecutableGraph
Auto Trait Implementations§
impl !RefUnwindSafe for ExecutableGraph
impl !UnwindSafe for ExecutableGraph
impl Forget for ExecutableGraph
impl Freeze for ExecutableGraph
impl Move for ExecutableGraph
impl Send for ExecutableGraph
impl Sync for ExecutableGraph
impl Unpin for ExecutableGraph
impl UnsafeUnpin for ExecutableGraph
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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