pub struct ContainerWorkspace {
pub runtime: ContainerRuntime,
pub project: String,
pub compose_file: PathBuf,
pub assigned_ports: Vec<(String, u16)>,
}Expand description
The container provider’s handle state — everything readiness and
teardown need across the seam’s three calls (the provider itself stays
stateless).
Fields§
§runtime: ContainerRuntime§project: StringThe mission-owned compose project (kranz-ws-<sanitized-mission-id>).
compose_file: PathBufThe rendered compose file in the mission runtime dir.
assigned_ports: Vec<(String, u16)>(service, OS-assigned host port) for each dynamic service, read
back from the runtime after the service came up — previews substitute
only these ports (never fabricated).
Trait Implementations§
Source§impl Clone for ContainerWorkspace
impl Clone for ContainerWorkspace
Source§fn clone(&self) -> ContainerWorkspace
fn clone(&self) -> ContainerWorkspace
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ContainerWorkspace
impl RefUnwindSafe for ContainerWorkspace
impl Send for ContainerWorkspace
impl Sync for ContainerWorkspace
impl Unpin for ContainerWorkspace
impl UnsafeUnpin for ContainerWorkspace
impl UnwindSafe for ContainerWorkspace
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