pub struct Launcher { /* private fields */ }Expand description
Launcher service for dynamic node management
Implementations§
Source§impl Launcher
impl Launcher
Sourcepub fn new(supervisor: Arc<Supervisor>) -> Self
pub fn new(supervisor: Arc<Supervisor>) -> Self
Create a new launcher
Sourcepub async fn register<F>(&self, node_type: String, factory: F)
pub async fn register<F>(&self, node_type: String, factory: F)
Register a node type with a factory function
Sourcepub async fn list_running(&self) -> Vec<String>
pub async fn list_running(&self) -> Vec<String>
List all running nodes
Sourcepub async fn is_running(&self, node_name: &str) -> bool
pub async fn is_running(&self, node_name: &str) -> bool
Check if a node is running
Sourcepub async fn list_types(&self) -> Vec<String>
pub async fn list_types(&self) -> Vec<String>
Get list of registered node types
Auto Trait Implementations§
impl Freeze for Launcher
impl !RefUnwindSafe for Launcher
impl Send for Launcher
impl Sync for Launcher
impl Unpin for Launcher
impl !UnwindSafe for Launcher
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