[][src]Struct the_process_foundry::base::AppInstance

pub struct AppInstance {
    pub instance_id: Option<String>,
    pub name: String,
    pub version: Option<Version>,
    pub module_version: Option<Version>,
    pub config_file: Option<String>,
    pub cli: Option<CliAccess>,
    pub api: Option<ApiAccess>,
}

Information about the specific running copy of the external program

This is a synthesis of both introspected information (version) and external (ip address/port) THINK: Should this identify the environment? THINK: Should the app instance know itself/functions?

Fields

instance_id: Option<String>

This is for use by Containers enumerating instances of their content

name: String

The standard name for this app (e.g. Postgres, DockerCompose)

version: Option<Version>

The version of the installed app NOTE: Some items (like sh), don't easily have a version available, so we make it optional

module_version: Option<Version>

The version of the Foundry code running NOTE: This will be much more important once TPF becomes distributed microservices

config_file: Option<String>cli: Option<CliAccess>api: Option<ApiAccess>

Implementations

impl AppInstance[src]

pub fn new(name: String) -> AppInstance[src]

pub fn full_name(&self) -> String[src]

pub fn set_command_path(
    &self,
    container: Option<Rc<dyn ContainerTrait>>,
    path: String
) -> Result<AppInstance>
[src]

pub fn get_command_path(&self) -> Result<String>[src]

Trait Implementations

impl Clone for AppInstance[src]

impl Debug for AppInstance[src]

impl Default for AppInstance[src]

impl<'de> Deserialize<'de> for AppInstance[src]

impl Display for AppInstance[src]

impl Serialize for AppInstance[src]

Auto Trait Implementations

impl !RefUnwindSafe for AppInstance

impl !Send for AppInstance

impl !Sync for AppInstance

impl Unpin for AppInstance

impl !UnwindSafe for AppInstance

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> DynClone for T where
    T: Clone
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,