pub struct CodeNode { /* private fields */ }Expand description
The code node.
Implementations§
Trait Implementations§
Source§impl Node for CodeNode
impl Node for CodeNode
Source§fn run(&self, ctx: NodeContext) -> BoxFuture<'_, NodeResult>
fn run(&self, ctx: NodeContext) -> BoxFuture<'_, NodeResult>
Execute the node. Dropping the returned future cancels the node.
Source§fn inputs(&self) -> Vec<Selector>
fn inputs(&self) -> Vec<Selector>
Selectors this node reads.
crate::graph::Graph::build rejects selectors
whose namespace is neither a node id nor sys / env / conversation
(catching typos at load time) and warns about references into other
container bodies. Return every selector the node may read, including
placeholders inside templates.Auto Trait Implementations§
impl Forget for CodeNode
impl Freeze for CodeNode
impl Move for CodeNode
impl RefUnwindSafe for CodeNode
impl Send for CodeNode
impl Sync for CodeNode
impl Unpin for CodeNode
impl UnsafeUnpin for CodeNode
impl UnwindSafe for CodeNode
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