pub struct SimpleNodeRegistry { /* private fields */ }Expand description
Simple in-memory node registry for compilation.
Implementations§
Source§impl SimpleNodeRegistry
impl SimpleNodeRegistry
Sourcepub fn new() -> Self
pub fn new() -> Self
An empty registry; populate it with register,
register_meta or
register_step_meta.
Sourcepub fn register_step_meta(&mut self, node_id: impl Into<String>, meta: StepMeta)
pub fn register_step_meta(&mut self, node_id: impl Into<String>, meta: StepMeta)
Register a step’s metadata, so its schemas take part in validation.
Sourcepub fn register(&mut self, node_id: impl Into<String>, filter: &dyn Filter)
pub fn register(&mut self, node_id: impl Into<String>, filter: &dyn Filter)
Register a filter, taking metadata and config hash from the instance itself.
Sourcepub fn register_meta(
&mut self,
node_id: impl Into<String>,
meta: FilterMeta,
config_hash: CacheKey,
)
pub fn register_meta( &mut self, node_id: impl Into<String>, meta: FilterMeta, config_hash: CacheKey, )
Register filter metadata directly, for callers that have no filter instance to hand — a plan received over the wire, a test.
Trait Implementations§
Source§impl Default for SimpleNodeRegistry
impl Default for SimpleNodeRegistry
Source§impl NodeRegistry for SimpleNodeRegistry
impl NodeRegistry for SimpleNodeRegistry
Source§fn node_meta(&self, node_id: &str) -> Option<NodeMeta>
fn node_meta(&self, node_id: &str) -> Option<NodeMeta>
A node’s contract — schemas, cacheability, effectfulness — whichever
kind it is.
None means the graph names a node nobody registered,
which the compiler reports rather than guesses around.Source§fn config_hash(&self, node_id: &str) -> Option<CacheKey>
fn config_hash(&self, node_id: &str) -> Option<CacheKey>
The node’s configuration identity, folded into cache keys. Required
rather than derived because only the registry knows how a node’s
configuration is canonicalized (Rust: canonical CBOR of fields;
Python: qualname + config + source hash).
Auto Trait Implementations§
impl Freeze for SimpleNodeRegistry
impl RefUnwindSafe for SimpleNodeRegistry
impl Send for SimpleNodeRegistry
impl Sync for SimpleNodeRegistry
impl Unpin for SimpleNodeRegistry
impl UnsafeUnpin for SimpleNodeRegistry
impl UnwindSafe for SimpleNodeRegistry
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