[−][src]Struct the_process_foundry::base::AppInstance
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]
&self,
container: Option<Rc<dyn ContainerTrait>>,
path: String
) -> Result<AppInstance>
pub fn get_command_path(&self) -> Result<String>
[src]
Trait Implementations
impl Clone for AppInstance
[src]
fn clone(&self) -> AppInstance
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for AppInstance
[src]
impl Default for AppInstance
[src]
fn default() -> AppInstance
[src]
impl<'de> Deserialize<'de> for AppInstance
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> DynClone for T where
T: Clone,
[src]
T: Clone,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,