pub struct RunnableImage<I: Image> { /* private fields */ }

Implementations§

source§

impl<I: Image> RunnableImage<I>

source

pub fn inner(&self) -> &I

source

pub fn args(&self) -> &I::Args

source

pub fn network(&self) -> &Option<String>

source

pub fn container_name(&self) -> &Option<String>

source

pub fn env_vars(&self) -> Box<dyn Iterator<Item = (&String, &String)> + '_>

source

pub fn volumes(&self) -> Box<dyn Iterator<Item = (&String, &String)> + '_>

source

pub fn ports(&self) -> &Option<Vec<Port>>

source

pub fn privileged(&self) -> bool

source

pub fn shm_size(&self) -> Option<u64>

Shared memory size in bytes

source

pub fn entrypoint(&self) -> Option<String>

source

pub fn descriptor(&self) -> String

source

pub fn ready_conditions(&self) -> Vec<WaitFor>

source

pub fn expose_ports(&self) -> Vec<u16>

source

pub fn exec_after_start(&self, cs: ContainerState) -> Vec<ExecCommand>

source§

impl<I: Image> RunnableImage<I>

source

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.

source

pub fn with_container_name(self, name: impl Into<String>) -> Self

source

pub fn with_network(self, network: impl Into<String>) -> Self

source

pub fn with_env_var( self, (key, value): (impl Into<String>, impl Into<String>) ) -> Self

source

pub fn with_volume( self, (orig, dest): (impl Into<String>, impl Into<String>) ) -> Self

source

pub fn with_mapped_port<P: Into<Port>>(self, port: P) -> Self

source

pub fn with_privileged(self, privileged: bool) -> Self

source

pub fn with_shm_size(self, bytes: u64) -> Self

Trait Implementations§

source§

impl<I: Debug + Image> Debug for RunnableImage<I>where I::Args: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<I: Image> From<(I, <I as Image>::Args)> for RunnableImage<I>

source§

fn from((image, image_args): (I, I::Args)) -> Self

Converts to this type from the input type.
source§

impl<I> From<I> for RunnableImage<I>where I: Image, I::Args: Default,

source§

fn from(image: I) -> Self

Converts to this type from the input type.

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> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.