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 !RefUnwindSafe for Launcher
impl !UnwindSafe for Launcher
impl Freeze for Launcher
impl Send for Launcher
impl Sync for Launcher
impl Unpin for Launcher
impl UnsafeUnpin 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
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