Struct testcontainers::core::RunnableImage
source · pub struct RunnableImage<I: Image> { /* private fields */ }
Implementations§
source§impl<I: Image> RunnableImage<I>
impl<I: Image> RunnableImage<I>
pub fn inner(&self) -> &I
pub fn args(&self) -> &I::Args
pub fn network(&self) -> &Option<String>
pub fn container_name(&self) -> &Option<String>
pub fn env_vars(&self) -> Box<dyn Iterator<Item = (&String, &String)> + '_>
pub fn volumes(&self) -> Box<dyn Iterator<Item = (&String, &String)> + '_>
pub fn ports(&self) -> &Option<Vec<Port>>
pub fn privileged(&self) -> bool
pub fn entrypoint(&self) -> Option<String>
pub fn descriptor(&self) -> String
pub fn ready_conditions(&self) -> Vec<WaitFor>
pub fn expose_ports(&self) -> Vec<u16>
pub fn exec_after_start(&self, cs: ContainerState) -> Vec<ExecCommand>
source§impl<I: Image> RunnableImage<I>
impl<I: Image> RunnableImage<I>
sourcepub fn with_tag(self, tag: impl Into<String>) -> Self
pub fn with_tag(self, tag: impl Into<String>) -> Self
There is no guarantee that the specified tag for an image would result in a running container. Users of this API are advised to use this at their own risk.
pub fn with_container_name(self, name: impl Into<String>) -> Self
pub fn with_network(self, network: impl Into<String>) -> Self
pub fn with_env_var( self, (key, value): (impl Into<String>, impl Into<String>) ) -> Self
pub fn with_volume( self, (orig, dest): (impl Into<String>, impl Into<String>) ) -> Self
pub fn with_mapped_port<P: Into<Port>>(self, port: P) -> Self
pub fn with_privileged(self, privileged: bool) -> Self
pub fn with_shm_size(self, bytes: u64) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<I> RefUnwindSafe for RunnableImage<I>where I: RefUnwindSafe, <I as Image>::Args: RefUnwindSafe,
impl<I> Send for RunnableImage<I>where I: Send, <I as Image>::Args: Send,
impl<I> Sync for RunnableImage<I>where I: Sync, <I as Image>::Args: Sync,
impl<I> Unpin for RunnableImage<I>where I: Unpin, <I as Image>::Args: Unpin,
impl<I> UnwindSafe for RunnableImage<I>where I: UnwindSafe, <I as Image>::Args: 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