Struct Container
pub struct Container<I>where
I: ToRunnableContainer,{
pub(crate) runner: Runner,
pub(crate) id: ContainerId,
pub(crate) image: I,
pub(crate) image_ref: ImageReference,
pub(crate) detached: Arc<AtomicBool>,
}
Expand description
A running container
It implements std::ops::Deref
for the image.
When it’s dropped, by default it’s stopping the container,
but you can choose to keep alive this container by calling Container::detach
Fields§
§runner: Runner
§id: ContainerId
§image: I
§image_ref: ImageReference
§detached: Arc<AtomicBool>
Implementations§
§impl Container<Minio>
impl Container<Minio>
pub async fn create_s3_bucket(&self, name: &str) -> Result<(), RunnerError>
pub async fn create_s3_bucket(&self, name: &str) -> Result<(), RunnerError>
pub async fn console_endpoint(&self) -> Result<String, PortError>
pub async fn console_endpoint(&self) -> Result<String, PortError>
§impl Container<Nats>
impl Container<Nats>
pub async fn client_endpoint(&self) -> Result<String, PortError>
pub async fn client_endpoint(&self) -> Result<String, PortError>
pub async fn monitoring_endpoint(&self) -> Result<String, PortError>
pub async fn monitoring_endpoint(&self) -> Result<String, PortError>
pub async fn cluster_endpoint(&self) -> Result<String, PortError>
pub async fn cluster_endpoint(&self) -> Result<String, PortError>
Trait Implementations§
Auto Trait Implementations§
impl<I> Freeze for Container<I>where
I: Freeze,
impl<I> RefUnwindSafe for Container<I>where
I: RefUnwindSafe,
impl<I> Send for Container<I>where
I: Send,
impl<I> Sync for Container<I>where
I: Sync,
impl<I> Unpin for Container<I>where
I: Unpin,
impl<I> UnwindSafe for Container<I>where
I: UnwindSafe,
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