pub enum NetworkMode {
Bridge,
Host,
None,
Other(String),
}Expand description
Sets a service container’s network mode.
See more: https://docs.docker.com/reference/compose-file/services/#network_mode
Variants§
Bridge
Host
Gives the container raw access to the host’s network interface.
None
Turns off all container networking.
Other(String)
Trait Implementations§
Source§impl Clone for NetworkMode
impl Clone for NetworkMode
Source§fn clone(&self) -> NetworkMode
fn clone(&self) -> NetworkMode
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 moreSource§impl Debug for NetworkMode
impl Debug for NetworkMode
Source§impl<'de> Deserialize<'de> for NetworkMode
impl<'de> Deserialize<'de> for NetworkMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for NetworkMode
impl Ord for NetworkMode
Source§fn cmp(&self, other: &NetworkMode) -> Ordering
fn cmp(&self, other: &NetworkMode) -> Ordering
1.21.0 · 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 NetworkMode
impl PartialEq for NetworkMode
Source§impl PartialOrd for NetworkMode
impl PartialOrd for NetworkMode
Source§impl Serialize for NetworkMode
impl Serialize for NetworkMode
impl Eq for NetworkMode
impl StructuralPartialEq for NetworkMode
Auto Trait Implementations§
impl Freeze for NetworkMode
impl RefUnwindSafe for NetworkMode
impl Send for NetworkMode
impl Sync for NetworkMode
impl Unpin for NetworkMode
impl UnsafeUnpin for NetworkMode
impl UnwindSafe for NetworkMode
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.