pub struct AppRuntimeManager { /* private fields */ }Expand description
Non-destructive manager for app runtimes backed by launch-ready configs.
Implementations§
Source§impl AppRuntimeManager
impl AppRuntimeManager
Sourcepub fn new(launchers: Vec<AppRuntimeLauncher>) -> Self
pub fn new(launchers: Vec<AppRuntimeLauncher>) -> Self
Construct a runtime manager from prepared launchers.
Sourcepub fn available(&self) -> Vec<AppRuntimeSummary>
pub fn available(&self) -> Vec<AppRuntimeSummary>
Returns the available app runtimes with metadata intact.
Sourcepub fn launcher(&self, name: &str) -> Option<AppRuntimeLauncher>
pub fn launcher(&self, name: &str) -> Option<AppRuntimeLauncher>
Returns a cloned launcher by name without mutating storage.
Sourcepub fn prepare(&self, name: &str) -> Result<AppRuntimeHandle, AppRuntimeError>
pub fn prepare(&self, name: &str) -> Result<AppRuntimeHandle, AppRuntimeError>
Returns a prepared config + metadata for launching the app server.
Sourcepub async fn start(
&self,
name: &str,
client: ClientInfo,
) -> Result<ManagedAppRuntime, AppRuntimeError>
pub async fn start( &self, name: &str, client: ClientInfo, ) -> Result<ManagedAppRuntime, AppRuntimeError>
Start an app-server runtime using the prepared config and metadata.
Trait Implementations§
Source§impl Clone for AppRuntimeManager
impl Clone for AppRuntimeManager
Source§fn clone(&self) -> AppRuntimeManager
fn clone(&self) -> AppRuntimeManager
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AppRuntimeManager
impl RefUnwindSafe for AppRuntimeManager
impl Send for AppRuntimeManager
impl Sync for AppRuntimeManager
impl Unpin for AppRuntimeManager
impl UnsafeUnpin for AppRuntimeManager
impl UnwindSafe for AppRuntimeManager
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