pub struct WindowsNetwork { /* private fields */ }
Expand description
WindowsNetwork contains network settings for Windows containers.
Implementations§
Source§impl WindowsNetwork
impl WindowsNetwork
Sourcepub fn endpoint_list(&self) -> &Option<Vec<String>>
pub fn endpoint_list(&self) -> &Option<Vec<String>>
List of HNS endpoints that the container should connect to.
Sourcepub fn dns_search_list(&self) -> &Option<Vec<String>>
pub fn dns_search_list(&self) -> &Option<Vec<String>>
Comma separated list of DNS suffixes to use for name resolution.
Name (ID) of the container that we will share with the network stack.
Sourcepub fn network_namespace(&self) -> &Option<String>
pub fn network_namespace(&self) -> &Option<String>
name (ID) of the network namespace that will be used for the container.
Source§impl WindowsNetwork
impl WindowsNetwork
Sourcepub fn set_endpoint_list(&mut self, val: Option<Vec<String>>) -> &mut Self
pub fn set_endpoint_list(&mut self, val: Option<Vec<String>>) -> &mut Self
List of HNS endpoints that the container should connect to.
Sourcepub fn set_allow_unqualified_dns_query(
&mut self,
val: Option<bool>,
) -> &mut Self
pub fn set_allow_unqualified_dns_query( &mut self, val: Option<bool>, ) -> &mut Self
Specifies if unqualified DNS name resolution is allowed.
Sourcepub fn set_dns_search_list(&mut self, val: Option<Vec<String>>) -> &mut Self
pub fn set_dns_search_list(&mut self, val: Option<Vec<String>>) -> &mut Self
Comma separated list of DNS suffixes to use for name resolution.
Name (ID) of the container that we will share with the network stack.
Sourcepub fn set_network_namespace(&mut self, val: Option<String>) -> &mut Self
pub fn set_network_namespace(&mut self, val: Option<String>) -> &mut Self
name (ID) of the network namespace that will be used for the container.
Trait Implementations§
Source§impl Clone for WindowsNetwork
impl Clone for WindowsNetwork
Source§fn clone(&self) -> WindowsNetwork
fn clone(&self) -> WindowsNetwork
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 WindowsNetwork
impl Debug for WindowsNetwork
Source§impl Default for WindowsNetwork
impl Default for WindowsNetwork
Source§fn default() -> WindowsNetwork
fn default() -> WindowsNetwork
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WindowsNetwork
impl<'de> Deserialize<'de> for WindowsNetwork
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 WindowsNetwork
impl PartialEq for WindowsNetwork
Source§impl Serialize for WindowsNetwork
impl Serialize for WindowsNetwork
impl Eq for WindowsNetwork
impl StructuralPartialEq for WindowsNetwork
Auto Trait Implementations§
impl Freeze for WindowsNetwork
impl RefUnwindSafe for WindowsNetwork
impl Send for WindowsNetwork
impl Sync for WindowsNetwork
impl Unpin for WindowsNetwork
impl UnwindSafe for WindowsNetwork
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)