[][src]Struct tc_core::Ports

pub struct Ports { /* fields omitted */ }
Deprecated since 0.3.1:

Testcontainers is no longer using microcrates, please upgrade to testcontainers version 0.8

The exposed ports of a running container.

Methods

impl Ports[src]

pub fn add_mapping(&mut self, internal: u32, host: u32) -> &mut Self[src]

Deprecated since 0.3.1:

Testcontainers is no longer using microcrates, please upgrade to testcontainers version 0.8

Registers the mapping of an exposed port.

pub fn map_to_host_port(&self, internal_port: u32) -> Option<u32>[src]

Deprecated since 0.3.1:

Testcontainers is no longer using microcrates, please upgrade to testcontainers version 0.8

Returns the host port for the given internal port.

Trait Implementations

impl Default for Ports[src]

impl PartialEq<Ports> for Ports[src]

impl Debug for Ports[src]

Auto Trait Implementations

impl Send for Ports

impl Unpin for Ports

impl Sync for Ports

impl UnwindSafe for Ports

impl RefUnwindSafe for Ports

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]