pub struct PortResult {
pub output: CommandOutput,
pub container: String,
pub port_mappings: Vec<PortMapping>,
}
Expand description
Result from the port command
Fields§
§output: CommandOutput
Raw command output
container: String
Container that was queried
port_mappings: Vec<PortMapping>
Parsed port mappings
Implementations§
Source§impl PortResult
impl PortResult
Sourcepub fn port_mappings(&self) -> &[PortMapping]
pub fn port_mappings(&self) -> &[PortMapping]
Get the port mappings
Sourcepub fn mapping_count(&self) -> usize
pub fn mapping_count(&self) -> usize
Get port mapping count
Trait Implementations§
Source§impl Clone for PortResult
impl Clone for PortResult
Source§fn clone(&self) -> PortResult
fn clone(&self) -> PortResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for PortResult
impl RefUnwindSafe for PortResult
impl Send for PortResult
impl Sync for PortResult
impl Unpin for PortResult
impl UnwindSafe for PortResult
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