pub struct ContainerConnectionOptsBuilder { /* private fields */ }
Implementations§
Source§impl ContainerConnectionOptsBuilder
impl ContainerConnectionOptsBuilder
Sourcepub fn ipam_config(self, config: EndpointIpamConfig) -> Self
pub fn ipam_config(self, config: EndpointIpamConfig) -> Self
Endpoint’s IPAM configuration.
pub fn aliases<S>(self, aliases: impl IntoIterator<Item = S>) -> Selfwhere
S: Serialize,
pub fn links<S>(self, links: impl IntoIterator<Item = S>) -> Selfwhere
S: Serialize,
Sourcepub fn network_id(self, network_id: impl Serialize) -> Self
pub fn network_id(self, network_id: impl Serialize) -> Self
Unique ID of the network.
Sourcepub fn endpoint_id(self, endpoint_id: impl Serialize) -> Self
pub fn endpoint_id(self, endpoint_id: impl Serialize) -> Self
Unique ID for the service endpoint in a Sandbox.
Sourcepub fn prefix_len(self, prefix_len: isize) -> Self
pub fn prefix_len(self, prefix_len: isize) -> Self
Mask length of the IPv4 address.
Sourcepub fn ipv6_gateway(self, ipv6_gateway: impl Serialize) -> Self
pub fn ipv6_gateway(self, ipv6_gateway: impl Serialize) -> Self
IPv6 gateway address.
Sourcepub fn ipv6_prefix_len(self, ipv6_prefix_len: i64) -> Self
pub fn ipv6_prefix_len(self, ipv6_prefix_len: i64) -> Self
Mask length of the global IPv6 address.
Sourcepub fn driver_opts<K, V>(
self,
driver_opts: impl IntoIterator<Item = (K, V)>,
) -> Self
pub fn driver_opts<K, V>( self, driver_opts: impl IntoIterator<Item = (K, V)>, ) -> Self
DriverOpts is a mapping of driver options and values. These options are passed directly to the driver and are driver specific.
pub fn build(self) -> ContainerConnectionOpts
Trait Implementations§
Source§impl Default for ContainerConnectionOptsBuilder
impl Default for ContainerConnectionOptsBuilder
Source§fn default() -> ContainerConnectionOptsBuilder
fn default() -> ContainerConnectionOptsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ContainerConnectionOptsBuilder
impl RefUnwindSafe for ContainerConnectionOptsBuilder
impl Send for ContainerConnectionOptsBuilder
impl Sync for ContainerConnectionOptsBuilder
impl Unpin for ContainerConnectionOptsBuilder
impl UnwindSafe for ContainerConnectionOptsBuilder
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