pub enum PortProtocol {
Tcp,
Udp,
Sctp,
}Expand description
A Docker port protocol label.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for PortProtocol
impl Clone for PortProtocol
Source§fn clone(&self) -> PortProtocol
fn clone(&self) -> PortProtocol
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 PortProtocol
impl Debug for PortProtocol
Source§impl Display for PortProtocol
impl Display for PortProtocol
Source§impl FromStr for PortProtocol
impl FromStr for PortProtocol
Source§type Err = PortMappingError
type Err = PortMappingError
The associated error which can be returned from parsing.
Source§fn from_str(value: &str) -> Result<PortProtocol, <PortProtocol as FromStr>::Err>
fn from_str(value: &str) -> Result<PortProtocol, <PortProtocol as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for PortProtocol
impl Hash for PortProtocol
Source§impl Ord for PortProtocol
impl Ord for PortProtocol
Source§fn cmp(&self, other: &PortProtocol) -> Ordering
fn cmp(&self, other: &PortProtocol) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PortProtocol
impl PartialEq for PortProtocol
Source§fn eq(&self, other: &PortProtocol) -> bool
fn eq(&self, other: &PortProtocol) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PortProtocol
impl PartialOrd for PortProtocol
impl Copy for PortProtocol
impl Eq for PortProtocol
impl StructuralPartialEq for PortProtocol
Auto Trait Implementations§
impl Freeze for PortProtocol
impl RefUnwindSafe for PortProtocol
impl Send for PortProtocol
impl Sync for PortProtocol
impl Unpin for PortProtocol
impl UnsafeUnpin for PortProtocol
impl UnwindSafe for PortProtocol
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