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