Struct oci_spec::runtime::WindowsNetworkBuilder
source · pub struct WindowsNetworkBuilder { /* private fields */ }
Expand description
Builder for WindowsNetwork
.
Implementations§
source§impl WindowsNetworkBuilder
impl WindowsNetworkBuilder
sourcepub fn endpoint_list<VALUE: Into<Vec<String>>>(self, value: VALUE) -> Self
pub fn endpoint_list<VALUE: Into<Vec<String>>>(self, value: VALUE) -> Self
List of HNS endpoints that the container should connect to.
sourcepub fn allow_unqualified_dns_query<VALUE: Into<bool>>(
self,
value: VALUE,
) -> Self
pub fn allow_unqualified_dns_query<VALUE: Into<bool>>( self, value: VALUE, ) -> Self
Specifies if unqualified DNS name resolution is allowed.
sourcepub fn dns_search_list<VALUE: Into<Vec<String>>>(self, value: VALUE) -> Self
pub fn dns_search_list<VALUE: Into<Vec<String>>>(self, value: VALUE) -> 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 network_namespace<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn network_namespace<VALUE: Into<String>>(self, value: VALUE) -> Self
name (ID) of the network namespace that will be used for the container.
sourcepub fn build(self) -> Result<WindowsNetwork, OciSpecError>
pub fn build(self) -> Result<WindowsNetwork, OciSpecError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WindowsNetworkBuilder
impl RefUnwindSafe for WindowsNetworkBuilder
impl Send for WindowsNetworkBuilder
impl Sync for WindowsNetworkBuilder
impl Unpin for WindowsNetworkBuilder
impl UnwindSafe for WindowsNetworkBuilder
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