Skip to main content

AppRuntime

Struct AppRuntime 

Source
pub struct AppRuntime {
Show 21 fields pub connection_namespace: Option<String>, pub application_ir: Option<Arc<ApplicationIr>>, pub app_id: Option<String>, pub app_root: Option<String>, pub build_dir: Option<String>, pub artifact_dir: Option<String>, pub host_profile: Option<String>, pub state_path: Option<String>, pub base_path: Option<String>, pub log_path: Option<String>, pub log_format: Option<String>, pub error_report_path: Option<String>, pub log_level: Option<String>, pub trusted_proxy_cidrs: Option<String>, pub runtime_conf_path: Option<String>, pub is_editor_preview: bool, pub queue_enabled: bool, pub queue_poll_interval_ms: i64, pub queue_max_attempts: i64, pub queue_retry_seconds: i64, pub resource_budgets: ResourceBudgets,
}
Expand description

Fully resolved runtime configuration for one mounted app.

§Fields

  • application_ir: Stored field on AppRuntime.
  • app_id: Stored field on AppRuntime.
  • app_root: Stored field on AppRuntime.
  • build_dir: Stored field on AppRuntime.
  • artifact_dir: Stored field on AppRuntime.
  • host_profile: Stored field on AppRuntime.
  • state_path: Stored field on AppRuntime.
  • base_path: Stored field on AppRuntime.
  • log_path: Stored field on AppRuntime.
  • log_format: Stored field on AppRuntime.
  • error_report_path: Stored field on AppRuntime.
  • log_level: Stored field on AppRuntime.
  • trusted_proxy_cidrs: Stored field on AppRuntime.
  • runtime_conf_path: Stored field on AppRuntime.
  • queue_enabled: Stored field on AppRuntime.
  • queue_poll_interval_ms: Stored field on AppRuntime.
  • queue_max_attempts: Stored field on AppRuntime.
  • queue_retry_seconds: Stored field on AppRuntime.
  • resource_budgets: Stored field on AppRuntime.

§Examples

ⓘ
let _ = std::mem::size_of::<pharos_runtime_core::config::AppRuntime>();
  • crate::config for constructors, helpers, and neighboring runtime types.

Fields§

§connection_namespace: Option<String>

Host-derived deployment identity for external connections; imported app declarations cannot select it.

§application_ir: Option<Arc<ApplicationIr>>§app_id: Option<String>§app_root: Option<String>§build_dir: Option<String>§artifact_dir: Option<String>§host_profile: Option<String>§state_path: Option<String>§base_path: Option<String>§log_path: Option<String>§log_format: Option<String>§error_report_path: Option<String>§log_level: Option<String>§trusted_proxy_cidrs: Option<String>§runtime_conf_path: Option<String>§is_editor_preview: bool

Set only by Architect when serving an isolated editable app preview.

§queue_enabled: bool§queue_poll_interval_ms: i64§queue_max_attempts: i64§queue_retry_seconds: i64§resource_budgets: ResourceBudgets

Trait Implementations§

Source§

impl Clone for AppRuntime

Source§

fn clone(&self) -> AppRuntime

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for AppRuntime

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for AppRuntime

Source§

fn default() -> AppRuntime

Returns the “default value” for a type. Read more
Source§

impl PartialEq for AppRuntime

Source§

fn eq(&self, other: &AppRuntime) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for AppRuntime

Source§

impl StructuralPartialEq for AppRuntime

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.