Struct podman_api::opts::ContainerCreateOptsBuilder
source · [−]pub struct ContainerCreateOptsBuilder { /* private fields */ }
Expand description
A builder struct for ContainerCreateOpts.
Implementations
sourceimpl ContainerCreateOptsBuilder
impl ContainerCreateOptsBuilder
sourcepub fn build(self) -> ContainerCreateOpts
pub fn build(self) -> ContainerCreateOpts
Finish building ContainerCreateOpts.
sourceimpl ContainerCreateOptsBuilder
impl ContainerCreateOptsBuilder
sourcepub fn annotations<I, K, V>(self, annotations: I) -> Self where
I: IntoIterator<Item = (K, V)>,
K: AsRef<str> + Serialize + Eq + Hash,
V: AsRef<str> + Serialize,
pub fn annotations<I, K, V>(self, annotations: I) -> Self where
I: IntoIterator<Item = (K, V)>,
K: AsRef<str> + Serialize + Eq + Hash,
V: AsRef<str> + Serialize,
Annotations are key-value options passed into the container runtime that can be used to trigger special behavior.
sourcepub fn apparmor_profile(
self,
apparmor_profile: impl AsRef<str> + Serialize
) -> Self
pub fn apparmor_profile(
self,
apparmor_profile: impl AsRef<str> + Serialize
) -> Self
ApparmorProfile is the name of the Apparmor profile the container will use.
sourcepub fn add_capabilities<I, S>(self, add_capabilities: I) -> Self where
I: IntoIterator<Item = S>,
S: AsRef<str> + Serialize,
pub fn add_capabilities<I, S>(self, add_capabilities: I) -> Self where
I: IntoIterator<Item = S>,
S: AsRef<str> + Serialize,
Capabilities which will be added to the container. Conflicts with
privileged
.
sourcepub fn drop_capabilities<I, S>(self, drop_capabilities: I) -> Self where
I: IntoIterator<Item = S>,
S: AsRef<str> + Serialize,
pub fn drop_capabilities<I, S>(self, drop_capabilities: I) -> Self where
I: IntoIterator<Item = S>,
S: AsRef<str> + Serialize,
Capabilities which will be removed from the container. Conflicts with
privileged
.
sourcepub fn cgroup_parent(self, cgroup_parent: impl AsRef<str> + Serialize) -> Self
pub fn cgroup_parent(self, cgroup_parent: impl AsRef<str> + Serialize) -> Self
Set the container’s CGroup parent. If not set, the default for the current cgroup driver will be used.
sourcepub fn cgroup_namespace(self, cgroup_namespace: Namespace) -> Self
pub fn cgroup_namespace(self, cgroup_namespace: Namespace) -> Self
Namespace to use for cgroups.
sourcepub fn cgroup_mode(self, cgroup_mode: impl AsRef<str> + Serialize) -> Self
pub fn cgroup_mode(self, cgroup_mode: impl AsRef<str> + Serialize) -> Self
Sets a policy for how cgroups will be created in the container, including the ability to disable creation entirely.
sourcepub fn command<I, S>(self, command: I) -> Self where
I: IntoIterator<Item = S>,
S: AsRef<str> + Serialize,
pub fn command<I, S>(self, command: I) -> Self where
I: IntoIterator<Item = S>,
S: AsRef<str> + Serialize,
Command that the container should run. If not given and Image is specified, this will be populated by the image’s configuration.
sourcepub fn common_pid_file(
self,
common_pid_file: impl AsRef<str> + Serialize
) -> Self
pub fn common_pid_file(
self,
common_pid_file: impl AsRef<str> + Serialize
) -> Self
A path at which a PID file for Conmon will be placed. If not given, a default location will be used.
sourcepub fn create_command<I, S>(self, create_command: I) -> Self where
I: IntoIterator<Item = S>,
S: AsRef<str> + Serialize,
pub fn create_command<I, S>(self, create_command: I) -> Self where
I: IntoIterator<Item = S>,
S: AsRef<str> + Serialize,
The command that was used to create this container. This will be returned when inspecting the container.
sourcepub fn cpu_period(self, cpu_period: u64) -> Self
pub fn cpu_period(self, cpu_period: u64) -> Self
CPU period of the cpuset
sourcepub fn create_working_dir(self, create_working_dir: bool) -> Self
pub fn create_working_dir(self, create_working_dir: bool) -> Self
Create the working directory if it doesn’t exist. If unset, it doesn’t create it.
sourcepub fn dependency_containers<I, S>(self, dependency_containers: I) -> Self where
I: IntoIterator<Item = S>,
S: AsRef<str> + Serialize,
pub fn dependency_containers<I, S>(self, dependency_containers: I) -> Self where
I: IntoIterator<Item = S>,
S: AsRef<str> + Serialize,
An array of containers this container depends on. Dependency containers must be started before this container. Dependencies can be specified by name or full/partial ID.
sourcepub fn devices_from<I, S>(self, devices_from: I) -> Self where
I: IntoIterator<Item = S>,
S: AsRef<str> + Serialize,
pub fn devices_from<I, S>(self, devices_from: I) -> Self where
I: IntoIterator<Item = S>,
S: AsRef<str> + Serialize,
A way to ensure your container inherits device specific information from another container.
sourcepub fn dns_option<I, S>(self, dns_option: I) -> Self where
I: IntoIterator<Item = S>,
S: AsRef<str> + Serialize,
pub fn dns_option<I, S>(self, dns_option: I) -> Self where
I: IntoIterator<Item = S>,
S: AsRef<str> + Serialize,
A set of DNS options that will be used in the container’s resolv.conf, replacing the host’s
DNS options which are used by default. Conflicts with
use_image_resolv_conf
.
sourcepub fn dns_search<I, S>(self, dns_search: I) -> Self where
I: IntoIterator<Item = S>,
S: AsRef<str> + Serialize,
pub fn dns_search<I, S>(self, dns_search: I) -> Self where
I: IntoIterator<Item = S>,
S: AsRef<str> + Serialize,
A set of DNS search domains that will be used in the container’s resolv.conf, replacing
the host’s DNS search domains which are used by default. Conflicts with
use_image_resolv_conf
.
sourcepub fn dns_server<I, S>(self, dns_server: I) -> Self where
I: IntoIterator<Item = S>,
S: AsRef<str> + Serialize,
pub fn dns_server<I, S>(self, dns_server: I) -> Self where
I: IntoIterator<Item = S>,
S: AsRef<str> + Serialize,
A set of DNS servers that will be used in the container’s resolv.conf, replacing the
host’s DNS Servers which are used by default. Conflicts with
use_image_resolv_conf
.
sourcepub fn entrypoint<I, S>(self, entrypoint: I) -> Self where
I: IntoIterator<Item = S>,
S: AsRef<str> + Serialize,
pub fn entrypoint<I, S>(self, entrypoint: I) -> Self where
I: IntoIterator<Item = S>,
S: AsRef<str> + Serialize,
Container’s entrypoint. If not given and Image is specified, this will be populated by the image’s configuration.
sourcepub fn env<I, K, V>(self, env: I) -> Self where
I: IntoIterator<Item = (K, V)>,
K: AsRef<str> + Serialize + Eq + Hash,
V: AsRef<str> + Serialize,
pub fn env<I, K, V>(self, env: I) -> Self where
I: IntoIterator<Item = (K, V)>,
K: AsRef<str> + Serialize + Eq + Hash,
V: AsRef<str> + Serialize,
A list of environment variables that will be set in the container.
sourcepub fn env_host(self, env_host: bool) -> Self
pub fn env_host(self, env_host: bool) -> Self
Indicates that the host environment should be added to container.
sourcepub fn health_config(self, health_config: Schema2HealthConfig) -> Self
pub fn health_config(self, health_config: Schema2HealthConfig) -> Self
Health config which holds configuration settings for the HEALTHCHECK feature, from docker/docker/api/types/container.
sourcepub fn hosts_add<I, S>(self, hosts_add: I) -> Self where
I: IntoIterator<Item = S>,
S: AsRef<str> + Serialize,
pub fn hosts_add<I, S>(self, hosts_add: I) -> Self where
I: IntoIterator<Item = S>,
S: AsRef<str> + Serialize,
A set of hosts which will be added to the container’s etc/hosts file. Conflicts with
use_image_hosts
.
sourcepub fn hostname(self, hostname: impl AsRef<str> + Serialize) -> Self
pub fn hostname(self, hostname: impl AsRef<str> + Serialize) -> Self
If not set, the hostname will not be modified (if UtsNS is not private) or will be set to the container ID (if UtsNS is private). Conflicts with UtsNS if UtsNS is not set to private.
sourcepub fn http_proxy(self, http_proxy: bool) -> Self
pub fn http_proxy(self, http_proxy: bool) -> Self
Indicates that the http host proxy environment variables should be added to container.
sourcepub fn id_mappings(self, id_mappings: IdMappingOptions) -> Self
pub fn id_mappings(self, id_mappings: IdMappingOptions) -> Self
Used for specifying how ID mapping should be set up for a layer or container.
sourcepub fn image_volume_mode(self, image_volume_mode: ImageVolumeMode) -> Self
pub fn image_volume_mode(self, image_volume_mode: ImageVolumeMode) -> Self
Indicates how image volumes will be created. The default if unset is
anonymous
.
sourcepub fn init(self, init: bool) -> Self
pub fn init(self, init: bool) -> Self
Specifies that an init binary will be mounted into the container, and will be used as PID1.
sourcepub fn init_container_type(
self,
init_container_type: impl AsRef<str> + Serialize
) -> Self
pub fn init_container_type(
self,
init_container_type: impl AsRef<str> + Serialize
) -> Self
Describes if this container is an init container and if so, what type: always or once.
sourcepub fn ipc_namespace(self, ipc_namespace: Namespace) -> Self
pub fn ipc_namespace(self, ipc_namespace: Namespace) -> Self
Namespace to use for IPC.
sourcepub fn labels<I, K, V>(self, labels: I) -> Self where
I: IntoIterator<Item = (K, V)>,
K: AsRef<str> + Serialize + Eq + Hash,
V: AsRef<str> + Serialize,
pub fn labels<I, K, V>(self, labels: I) -> Self where
I: IntoIterator<Item = (K, V)>,
K: AsRef<str> + Serialize + Eq + Hash,
V: AsRef<str> + Serialize,
A list of labels that will be assigned to the container.
sourcepub fn log_configuration(self, log_configuration: LogConfig) -> Self
pub fn log_configuration(self, log_configuration: LogConfig) -> Self
Logging configuration for the container.
sourcepub fn mask<I, S>(self, mask: I) -> Self where
I: IntoIterator<Item = S>,
S: AsRef<str> + Serialize,
pub fn mask<I, S>(self, mask: I) -> Self where
I: IntoIterator<Item = S>,
S: AsRef<str> + Serialize,
The path we want to mask in the container. This masks the paths given in addition to the default list.
sourcepub fn name(self, name: impl AsRef<str> + Serialize) -> Self
pub fn name(self, name: impl AsRef<str> + Serialize) -> Self
The name the container will be given. If no name is provided, one will be randomly generated.
sourcepub fn namespace(self, namespace: impl AsRef<str> + Serialize) -> Self
pub fn namespace(self, namespace: impl AsRef<str> + Serialize) -> Self
The libpod namespace the container will be placed in.
sourcepub fn net_namespace(self, net_namespace: Namespace) -> Self
pub fn net_namespace(self, net_namespace: Namespace) -> Self
Namespace to use for network.
sourcepub fn network_options<I, K, V>(self, network_options: I) -> Self where
I: IntoIterator<Item = (K, V)>,
K: AsRef<str> + Serialize + Eq + Hash,
V: AsRef<str> + Serialize,
pub fn network_options<I, K, V>(self, network_options: I) -> Self where
I: IntoIterator<Item = (K, V)>,
K: AsRef<str> + Serialize + Eq + Hash,
V: AsRef<str> + Serialize,
Additional options for each network.
sourcepub fn no_new_privilages(self, no_new_privilages: bool) -> Self
pub fn no_new_privilages(self, no_new_privilages: bool) -> Self
Whether the container will set the no new privileges flag on create, which disables gaining additional privileges (e.g. via setuid) in the container.
sourcepub fn oci_runtime(self, oci_runtime: impl AsRef<str> + Serialize) -> Self
pub fn oci_runtime(self, oci_runtime: impl AsRef<str> + Serialize) -> Self
The name of the OCI runtime that will be used to create the container. If not specified, the default will be used.
sourcepub fn oom_score_adj(self, oom_score_adj: i64) -> Self
pub fn oom_score_adj(self, oom_score_adj: i64) -> Self
Adjusts the score used by the OOM killer to determine processes to kill for the container’s process.
sourcepub fn personality(self, personality: LinuxPersonality) -> Self
pub fn personality(self, personality: LinuxPersonality) -> Self
Specify the Linux personality syscall input.
sourcepub fn pid_namespace(self, pid_namespace: Namespace) -> Self
pub fn pid_namespace(self, pid_namespace: Namespace) -> Self
Namespace to use for pids.
sourcepub fn pod(self, pod: impl AsRef<str> + Serialize) -> Self
pub fn pod(self, pod: impl AsRef<str> + Serialize) -> Self
ID of the pod the container should join.
sourcepub fn privileged(self, privileged: bool) -> Self
pub fn privileged(self, privileged: bool) -> Self
Whether the container is privileged. Privileged does the following: Adds all devices on the system to the container. Adds all capabilities to the container. Disables Seccomp, SELinux, and Apparmor confinement. (Though SELinux can be manually re-enabled).
sourcepub fn procfs_opts<I, S>(self, procfs_opts: I) -> Self where
I: IntoIterator<Item = S>,
S: AsRef<str> + Serialize,
pub fn procfs_opts<I, S>(self, procfs_opts: I) -> Self where
I: IntoIterator<Item = S>,
S: AsRef<str> + Serialize,
The options used for the proc mount.
sourcepub fn publish_image_ports(self, publish_image_ports: bool) -> Self
pub fn publish_image_ports(self, publish_image_ports: bool) -> Self
If set to true the ports specified in the image will be published to random unused ports
(guaranteed to be above 1024) on the host. This is based on ports set in Expose below,
and any ports specified by the Image (if one is given). Only available if
net_namespace
is set to Bridge or Slirp.
sourcepub fn raw_image_name(self, raw_image_name: impl AsRef<str> + Serialize) -> Self
pub fn raw_image_name(self, raw_image_name: impl AsRef<str> + Serialize) -> Self
The user-specified and unprocessed input referring to a local or a remote image.
sourcepub fn read_only_fs(self, read_only_fs: bool) -> Self
pub fn read_only_fs(self, read_only_fs: bool) -> Self
If set to true everything will be mounted as read-only.
sourcepub fn remove(self, remove: bool) -> Self
pub fn remove(self, remove: bool) -> Self
If set to true the container will be removed upon exitting.
sourcepub fn resource_limits(self, resource_limits: LinuxResources) -> Self
pub fn resource_limits(self, resource_limits: LinuxResources) -> Self
Set the container runtime resource contstraints.
sourcepub fn restart_policy(self, restart_policy: impl AsRef<str> + Serialize) -> Self
pub fn restart_policy(self, restart_policy: impl AsRef<str> + Serialize) -> Self
An action which will be taken when the container exits. If not given, the default policy, which does nothing, will be used.
sourcepub fn restart_tries(self, restart_tries: u64) -> Self
pub fn restart_tries(self, restart_tries: u64) -> Self
The number of attempts that will be made to restart the container. Only available
when restart_policy
is set to on-failure
.
sourcepub fn rootfs_overlay(self, rootfs_overlay: bool) -> Self
pub fn rootfs_overlay(self, rootfs_overlay: bool) -> Self
Tells if rootfs is actuall an overlay on top of base path.
sourcepub fn rootfs_propagation(
self,
rootfs_propagation: impl AsRef<str> + Serialize
) -> Self
pub fn rootfs_propagation(
self,
rootfs_propagation: impl AsRef<str> + Serialize
) -> Self
The rootfs propagation mode for the container. If not set, the default of rslave will be used.
sourcepub fn sdnotify_mode(self, sdnotify_mode: SocketNotifyMode) -> Self
pub fn sdnotify_mode(self, sdnotify_mode: SocketNotifyMode) -> Self
Determine how to handle NOTIFY_SOCKET
.
sourcepub fn seccomp_policy(self, seccomp_policy: SeccompPolicy) -> Self
pub fn seccomp_policy(self, seccomp_policy: SeccompPolicy) -> Self
Determines which seccomp profile gets applied the container.
sourcepub fn seccomp_profile_path(
self,
seccomp_profile_path: impl AsRef<str> + Serialize
) -> Self
pub fn seccomp_profile_path(
self,
seccomp_profile_path: impl AsRef<str> + Serialize
) -> Self
The path to a JSON file containing the container’s Seccomp profile. If not specified, no Seccomp profile will be used.
sourcepub fn secret_env<I, K, V>(self, secret_env: I) -> Self where
I: IntoIterator<Item = (K, V)>,
K: AsRef<str> + Serialize + Eq + Hash,
V: AsRef<str> + Serialize,
pub fn secret_env<I, K, V>(self, secret_env: I) -> Self where
I: IntoIterator<Item = (K, V)>,
K: AsRef<str> + Serialize + Eq + Hash,
V: AsRef<str> + Serialize,
A list of secrets that will be set as environment variables.
sourcepub fn selinux_opts<I, S>(self, selinux_opts: I) -> Self where
I: IntoIterator<Item = S>,
S: AsRef<str> + Serialize,
pub fn selinux_opts<I, S>(self, selinux_opts: I) -> Self where
I: IntoIterator<Item = S>,
S: AsRef<str> + Serialize,
The process label the container will use. if SELinux is enabled and this is not specified, a label will be automatically generated if not specified.
sourcepub fn shm_size(self, shm_size: i64) -> Self
pub fn shm_size(self, shm_size: i64) -> Self
The size of the tmpfs to mount in at /dev/shm, in bytes.
sourcepub fn stop_signal(self, stop_signal: i64) -> Self
pub fn stop_signal(self, stop_signal: i64) -> Self
A number describing a process signal.
sourcepub fn stop_timeout(self, stop_timeout: u64) -> Self
pub fn stop_timeout(self, stop_timeout: u64) -> Self
A timeout between the container’s stop signal being sent and SIGKILL being sent. If not provided, the default will be used. If 0 is used, stop signal will not be sent, and SIGKILL will be sent instead.
sourcepub fn storage_opts<I, K, V>(self, storage_opts: I) -> Self where
I: IntoIterator<Item = (K, V)>,
K: AsRef<str> + Serialize + Eq + Hash,
V: AsRef<str> + Serialize,
pub fn storage_opts<I, K, V>(self, storage_opts: I) -> Self where
I: IntoIterator<Item = (K, V)>,
K: AsRef<str> + Serialize + Eq + Hash,
V: AsRef<str> + Serialize,
A list of container’s storage options.
sourcepub fn sysctl<I, K, V>(self, sysctl: I) -> Self where
I: IntoIterator<Item = (K, V)>,
K: AsRef<str> + Serialize + Eq + Hash,
V: AsRef<str> + Serialize,
pub fn sysctl<I, K, V>(self, sysctl: I) -> Self where
I: IntoIterator<Item = (K, V)>,
K: AsRef<str> + Serialize + Eq + Hash,
V: AsRef<str> + Serialize,
A list of kernel parameters to set in the container.
pub fn systemd(self, systemd: SystemdEnabled) -> Self
sourcepub fn timeout(self, timeout: u64) -> Self
pub fn timeout(self, timeout: u64) -> Self
A maximum time in seconds the container will run before main process is sent SIGKILL. If 0 is used, signal will not be sent.
sourcepub fn timezone(self, timezone: impl AsRef<str> + Serialize) -> Self
pub fn timezone(self, timezone: impl AsRef<str> + Serialize) -> Self
The timezone inside the container. Local means it has the same timezone as the host machine.
sourcepub fn umask(self, umask: impl AsRef<str> + Serialize) -> Self
pub fn umask(self, umask: impl AsRef<str> + Serialize) -> Self
The umask the init process of the container will be run with.
sourcepub fn unified<I, K, V>(self, unified: I) -> Self where
I: IntoIterator<Item = (K, V)>,
K: AsRef<str> + Serialize + Eq + Hash,
V: AsRef<str> + Serialize,
pub fn unified<I, K, V>(self, unified: I) -> Self where
I: IntoIterator<Item = (K, V)>,
K: AsRef<str> + Serialize + Eq + Hash,
V: AsRef<str> + Serialize,
A list of key-value options passed into the container runtime that are used to configure cgroup v2.
sourcepub fn unmask<I, S>(self, unmask: I) -> Self where
I: IntoIterator<Item = S>,
S: AsRef<str> + Serialize,
pub fn unmask<I, S>(self, unmask: I) -> Self where
I: IntoIterator<Item = S>,
S: AsRef<str> + Serialize,
The path we want to unmask in the container. To override all the default paths that are masked, set unmask=ALL.
sourcepub fn unset_env<I, S>(self, unset_env: I) -> Self where
I: IntoIterator<Item = S>,
S: AsRef<str> + Serialize,
pub fn unset_env<I, S>(self, unset_env: I) -> Self where
I: IntoIterator<Item = S>,
S: AsRef<str> + Serialize,
A list of environment variables to unset if specified in the image or from buildin or containers.conf
sourcepub fn unset_env_all(self, unset_env_all: bool) -> Self
pub fn unset_env_all(self, unset_env_all: bool) -> Self
If true all environment variables from the image or from buldin or containers.conf will get unset.
sourcepub fn use_image_hosts(self, use_image_hosts: bool) -> Self
pub fn use_image_hosts(self, use_image_hosts: bool) -> Self
Indicates that /etc/hosts should not be managed by Podman, and instead sourced from the image.
Conflicts with hosts_add
.
sourcepub fn use_image_resolv_conf(self, use_image_resolv_conf: bool) -> Self
pub fn use_image_resolv_conf(self, use_image_resolv_conf: bool) -> Self
Indicates that /etc/hosts should not be managed by Podman, and instead sourced from the image.
Conflicts with dns_server
,
dns_search
,
dns_option
.
sourcepub fn user(self, user: impl AsRef<str> + Serialize) -> Self
pub fn user(self, user: impl AsRef<str> + Serialize) -> Self
The user the container will be run as. Can be given as a UID or a username; if a username, it will be resolved within the container, using the container’s /etc/passwd. If unset, the container will be run as root.
sourcepub fn user_namespace(self, user_namespace: Namespace) -> Self
pub fn user_namespace(self, user_namespace: Namespace) -> Self
Namespace to use for users.
sourcepub fn uts_namespace(self, uts_namespace: Namespace) -> Self
pub fn uts_namespace(self, uts_namespace: Namespace) -> Self
Namespace to use for uts.
sourcepub fn volatile(self, volatile: bool) -> Self
pub fn volatile(self, volatile: bool) -> Self
Specifies whether the container storage can be optimized at the cost of not syncing all the dirty files in memory.
sourcepub fn volumes_from<I, S>(self, volumes_from: I) -> Self where
I: IntoIterator<Item = S>,
S: AsRef<str> + Serialize,
pub fn volumes_from<I, S>(self, volumes_from: I) -> Self where
I: IntoIterator<Item = S>,
S: AsRef<str> + Serialize,
Set of containers whose volumes will be added to this container. The name or ID of the container must be provided, and may optionally be followed by a : and then one or more comma-separated options. Valid options are ‘ro’, ‘rw’, and ‘z’. Options will be used for all volumes sourced from the container.
sourcepub fn weight_device(self, weight_device: LinuxWeightDevice) -> Self
pub fn weight_device(self, weight_device: LinuxWeightDevice) -> Self
Weight per cgroup per device.
Trait Implementations
sourceimpl Clone for ContainerCreateOptsBuilder
impl Clone for ContainerCreateOptsBuilder
sourcefn clone(&self) -> ContainerCreateOptsBuilder
fn clone(&self) -> ContainerCreateOptsBuilder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ContainerCreateOptsBuilder
impl Debug for ContainerCreateOptsBuilder
sourceimpl Default for ContainerCreateOptsBuilder
impl Default for ContainerCreateOptsBuilder
sourcefn default() -> ContainerCreateOptsBuilder
fn default() -> ContainerCreateOptsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for ContainerCreateOptsBuilder
impl Send for ContainerCreateOptsBuilder
impl Sync for ContainerCreateOptsBuilder
impl Unpin for ContainerCreateOptsBuilder
impl UnwindSafe for ContainerCreateOptsBuilder
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> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
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