pub enum NetworkMode {
Bridge,
Host,
None,
Container,
Custom(String),
}
Expand description
The networking mode for the run commands during image build.
Variants§
Bridge
Limited to containers within a single host, port mapping required for external access.
Host
No isolation between host and containers on this network.
None
Disable all networking for this container.
Container
Share networking with given container.
Custom(String)
Custom network’s name.
Trait Implementations§
Source§impl AsRef<str> for NetworkMode
impl AsRef<str> for NetworkMode
Source§impl Clone for NetworkMode
impl Clone for NetworkMode
Source§fn clone(&self) -> NetworkMode
fn clone(&self) -> NetworkMode
Returns a copy 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 Default for NetworkMode
impl Default for NetworkMode
Source§fn default() -> NetworkMode
fn default() -> NetworkMode
Returns the “default value” for a type. Read more
Source§impl Display for NetworkMode
impl Display for NetworkMode
Source§impl PartialEq for NetworkMode
impl PartialEq 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 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