Struct oci_spec::runtime::WindowsNetwork
source · 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
)