pub struct NodeToRun {
pub name: String,
pub path: String,
pub is_monorepo_node: bool,
}Expand description
Information about a node to run
Fields§
§name: StringNode name
path: StringPath to the node package (e.g., “mecha10-nodes-motor-fake” or “nodes/custom”)
is_monorepo_node: boolWhether this is a monorepo node (starts with “mecha10-nodes-”)
Implementations§
Source§impl NodeToRun
impl NodeToRun
Sourcepub fn from_config(node: &NodeEntry) -> Self
pub fn from_config(node: &NodeEntry) -> Self
Create a new NodeToRun from NodeEntry
Sourcepub fn binary_path(&self, project_name: &str) -> String
pub fn binary_path(&self, project_name: &str) -> String
Get the binary path for this node
Uses smart resolution to find the best binary location:
- Framework dev mode: local build in target/
- Production mode: globally installed binary (if available)
- Fallback: local build
Note: This method is no longer used by CLI (replaced by node-runner in Phase 2). Kept for testing purposes.
Sourcepub fn args(&self, project_name: &str) -> Vec<String>
pub fn args(&self, project_name: &str) -> Vec<String>
Get command args for running this node
Returns args based on whether we’re using:
- Global binary: no args (binary IS the node)
- Local project build: [“node”, “node_name”] subcommand
Note: This method is no longer used by CLI (replaced by node-runner in Phase 2). Kept for testing purposes.
Trait Implementations§
impl Eq for NodeToRun
impl StructuralPartialEq for NodeToRun
Auto Trait Implementations§
impl Freeze for NodeToRun
impl RefUnwindSafe for NodeToRun
impl Send for NodeToRun
impl Sync for NodeToRun
impl Unpin for NodeToRun
impl UnwindSafe for NodeToRun
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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