Struct docker_api::api::network::opts::ContainerConnectionOptsBuilder
source · [−]pub struct ContainerConnectionOptsBuilder { /* private fields */ }
Implementations
sourceimpl 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<A, S>(self, aliases: A) -> Self where
A: IntoIterator<Item = S>,
S: AsRef<str> + Serialize,
pub fn links<L, S>(self, links: L) -> Self where
L: IntoIterator<Item = S>,
S: AsRef<str> + Serialize,
sourcepub fn network_id<I>(self, network_id: I) -> Self where
I: AsRef<str> + Serialize,
pub fn network_id<I>(self, network_id: I) -> Self where
I: AsRef<str> + Serialize,
Unique ID of the network.
sourcepub fn endpoint_id<I>(self, endpoint_id: I) -> Self where
I: AsRef<str> + Serialize,
pub fn endpoint_id<I>(self, endpoint_id: I) -> Self where
I: AsRef<str> + Serialize,
Unique ID for the service endpoint in a Sandbox.
sourcepub fn gateway<G>(self, gateway: G) -> Self where
G: AsRef<str> + Serialize,
pub fn gateway<G>(self, gateway: G) -> Self where
G: AsRef<str> + Serialize,
Gateway address for this network.
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<G>(self, ipv6_gateway: G) -> Self where
G: AsRef<str> + Serialize,
pub fn ipv6_gateway<G>(self, ipv6_gateway: G) -> Self where
G: AsRef<str> + Serialize,
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 mac<M>(self, mac: M) -> Self where
M: AsRef<str> + Serialize,
pub fn mac<M>(self, mac: M) -> Self where
M: AsRef<str> + Serialize,
MAC address for the endpoint on this network.
sourcepub fn driver_opts<O, K, V>(self, driver_opts: O) -> Self where
O: IntoIterator<Item = (K, V)>,
K: AsRef<str> + Serialize + Eq + Hash,
V: AsRef<str> + Serialize,
pub fn driver_opts<O, K, V>(self, driver_opts: O) -> Self where
O: IntoIterator<Item = (K, V)>,
K: AsRef<str> + Serialize + Eq + Hash,
V: AsRef<str> + Serialize,
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
sourceimpl Default for ContainerConnectionOptsBuilder
impl Default for ContainerConnectionOptsBuilder
sourcefn default() -> ContainerConnectionOptsBuilder
fn default() -> ContainerConnectionOptsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for ContainerConnectionOptsBuilder
impl Send for ContainerConnectionOptsBuilder
impl Sync for ContainerConnectionOptsBuilder
impl Unpin for ContainerConnectionOptsBuilder
impl UnwindSafe for ContainerConnectionOptsBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more