pub enum DockerNetworking {
Host,
Isolated,
Attached(DockerAttachedNetworking),
}Variants§
Host
Share the host network stack (--network host), ports can’t be published
Isolated
No network at all (--network none), ports can’t be published
Attached(DockerAttachedNetworking)
Attached to networks, with published ports
Implementations§
Source§impl DockerNetworking
impl DockerNetworking
pub fn attached( networks: Option<NetworkList>, ports: Option<Vec<PublishedPort>>, ) -> Self
Trait Implementations§
Source§impl Clone for DockerNetworking
impl Clone for DockerNetworking
Source§impl Debug for DockerNetworking
impl Debug for DockerNetworking
Source§impl<'de> Deserialize<'de> for DockerNetworking
impl<'de> Deserialize<'de> for DockerNetworking
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 PartialEq for DockerNetworking
impl PartialEq for DockerNetworking
Source§impl Serialize for DockerNetworking
impl Serialize for DockerNetworking
impl StructuralPartialEq for DockerNetworking
Auto Trait Implementations§
impl Freeze for DockerNetworking
impl RefUnwindSafe for DockerNetworking
impl Send for DockerNetworking
impl Sync for DockerNetworking
impl Unpin for DockerNetworking
impl UnsafeUnpin for DockerNetworking
impl UnwindSafe for DockerNetworking
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