[−][src]Struct tc_core::Ports
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
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]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,