Struct docker_api::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<S>(self, aliases: impl IntoIterator<Item = S>) -> Self where
S: Serialize,
pub fn links<S>(self, links: impl IntoIterator<Item = S>) -> Self where
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 where
K: Serialize + Eq + Hash,
V: Serialize,
pub fn driver_opts<K, V>(
self,
driver_opts: impl IntoIterator<Item = (K, V)>
) -> Self where
K: Serialize + Eq + Hash,
V: 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