[−][src]Struct the_process_foundry::applications::docker_container::DockerContainer
Fields
status: Status
instance: AppInstance
parent: Option<Rc<dyn ContainerTrait>>
The container who owns this instance, and how we send manipulation commands (eg Docker, DockerCompose)
shell: Option<Rc<dyn ContainerTrait>>
The shell to use inside this container when running additional executables
Implementations
impl DockerContainer
[src]
pub fn set_parent(
&self,
parent: Rc<dyn ContainerTrait>
) -> Result<DockerContainer>
[src]
&self,
parent: Rc<dyn ContainerTrait>
) -> Result<DockerContainer>
If we don't have a parent, set it to a local instance of docker TODO: Actually make this happen. Currently already using Docker-Compose
pub fn set_shell(&self, preferred: Option<AppQuery>) -> Result<DockerContainer>
[src]
Find and verify the shell on the container
fn get_module_version() -> Result<Version>
[src]
fn get_name(&self) -> String
[src]
Trait Implementations
impl AppTrait for DockerContainer
[src]
fn get_name(&self) -> String
[src]
fn build(
instance: AppInstance,
parent: Option<Rc<dyn ContainerTrait>>
) -> Result<DockerContainer>
[src]
instance: AppInstance,
parent: Option<Rc<dyn ContainerTrait>>
) -> Result<DockerContainer>
fn set_version(&self, instance: AppInstance) -> Result<AppInstance>
[src]
impl Clone for DockerContainer
[src]
fn clone(&self) -> DockerContainer
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl ContainerTrait for DockerContainer
[src]
fn find(&self, query: AppQuery) -> Result<Vec<AppInstance>>
[src]
This will find a list of apps with configurations that the container knows about
fn cached_apps(&self) -> Result<Vec<AppInstance>>
[src]
List the known items in the app cache
fn forward(&self, _to: AppInstance, message: Message) -> Result<String>
[src]
fn get_name(&self) -> String
[src]
Get the name/version of the container, usually for use in logging/errors.
fn find_one(&self, query: AppQuery) -> Result<AppInstance>
[src]
impl Debug for DockerContainer
[src]
impl<'de> Deserialize<'de> for DockerContainer
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for DockerContainer
[src]
Auto Trait Implementations
impl !RefUnwindSafe for DockerContainer
impl !Send for DockerContainer
impl !Sync for DockerContainer
impl Unpin for DockerContainer
impl !UnwindSafe for DockerContainer
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, 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>,