pub struct DriverDetails { /* private fields */ }Expand description
Detailed information about the spawned container.
Implementations§
Source§impl DriverDetails
impl DriverDetails
Sourcepub fn container_name(&self) -> &str
pub fn container_name(&self) -> &str
Returns the name of the container.
Sourcepub fn try_get_exposed_port(
&self,
protocol: &str,
internal_port: u16,
) -> Option<u16>
pub fn try_get_exposed_port( &self, protocol: &str, internal_port: u16, ) -> Option<u16>
Attempts to look up a mapped ephemeral port for the given exposed port.
The same protocol and internal port values used to expose the port must be used here. If the given
protocol/port combination was not exposed, None is returned. Otherwise, the mapped ephemeral port is returned.
This port is exposed on 0.0.0.0 on the host side.
Trait Implementations§
Source§impl Debug for DriverDetails
impl Debug for DriverDetails
Source§impl Default for DriverDetails
impl Default for DriverDetails
Source§fn default() -> DriverDetails
fn default() -> DriverDetails
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DriverDetails
impl RefUnwindSafe for DriverDetails
impl Send for DriverDetails
impl Sync for DriverDetails
impl Unpin for DriverDetails
impl UnwindSafe for DriverDetails
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