pub enum PortProto {
Tcp,
Udp,
Both,
}Expand description
Container network mode. Protocol for a port-forward mapping.
Matches Docker’s -p HOST:CONTAINER/tcp|udp|both syntax.
Variants§
Implementations§
Trait Implementations§
impl Copy for PortProto
impl Eq for PortProto
impl StructuralPartialEq for PortProto
Auto Trait Implementations§
impl Freeze for PortProto
impl RefUnwindSafe for PortProto
impl Send for PortProto
impl Sync for PortProto
impl Unpin for PortProto
impl UnsafeUnpin for PortProto
impl UnwindSafe for PortProto
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.