pub struct ExposedPort { /* private fields */ }Expand description
A container port exposed for inter-service use without publishing it to a host.
Implementations§
Source§impl ExposedPort
impl ExposedPort
Sourcepub fn new(container: u16, protocol: Protocol) -> Result<Self, ModelError>
pub fn new(container: u16, protocol: Protocol) -> Result<Self, ModelError>
Creates one exposed container port.
§Errors
Returns ModelError::ZeroContainerPort when container is zero.
Trait Implementations§
Source§impl Clone for ExposedPort
impl Clone for ExposedPort
Source§fn clone(&self) -> ExposedPort
fn clone(&self) -> ExposedPort
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExposedPort
impl Debug for ExposedPort
impl Eq for ExposedPort
Source§impl PartialEq for ExposedPort
impl PartialEq for ExposedPort
impl StructuralPartialEq for ExposedPort
Auto Trait Implementations§
impl Freeze for ExposedPort
impl RefUnwindSafe for ExposedPort
impl Send for ExposedPort
impl Sync for ExposedPort
impl Unpin for ExposedPort
impl UnsafeUnpin for ExposedPort
impl UnwindSafe for ExposedPort
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