pub struct AppRuntime {
pub name: String,
pub description: Option<String>,
pub tags: Vec<String>,
pub metadata: Value,
pub env: BTreeMap<String, String>,
pub code_home: Option<PathBuf>,
pub current_dir: Option<PathBuf>,
pub mirror_stdio: Option<bool>,
pub startup_timeout_ms: Option<u64>,
pub binary: Option<PathBuf>,
}Expand description
Stored app runtime converted into launch-ready config with metadata intact.
Fields§
§name: String§description: Option<String>§metadata: Value§env: BTreeMap<String, String>§code_home: Option<PathBuf>§current_dir: Option<PathBuf>§mirror_stdio: Option<bool>§startup_timeout_ms: Option<u64>§binary: Option<PathBuf>Implementations§
Source§impl AppRuntime
impl AppRuntime
Sourcepub fn into_launcher(self, defaults: &StdioServerConfig) -> AppRuntimeLauncher
pub fn into_launcher(self, defaults: &StdioServerConfig) -> AppRuntimeLauncher
Converts an app runtime into a launch-ready config using provided defaults.
Sourcepub fn to_launcher(&self, defaults: &StdioServerConfig) -> AppRuntimeLauncher
pub fn to_launcher(&self, defaults: &StdioServerConfig) -> AppRuntimeLauncher
Convenience clone-preserving conversion to a launcher.
Trait Implementations§
Source§impl Clone for AppRuntime
impl Clone for AppRuntime
Source§fn clone(&self) -> AppRuntime
fn clone(&self) -> AppRuntime
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AppRuntime
impl Debug for AppRuntime
Source§impl From<AppRuntimeEntry> for AppRuntime
impl From<AppRuntimeEntry> for AppRuntime
Source§fn from(entry: AppRuntimeEntry) -> Self
fn from(entry: AppRuntimeEntry) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AppRuntime
impl PartialEq for AppRuntime
impl StructuralPartialEq for AppRuntime
Auto Trait Implementations§
impl Freeze for AppRuntime
impl RefUnwindSafe for AppRuntime
impl Send for AppRuntime
impl Sync for AppRuntime
impl Unpin for AppRuntime
impl UnsafeUnpin for AppRuntime
impl UnwindSafe for AppRuntime
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