[−][src]Struct dockworker::ContainerHostConfig
Methods
impl ContainerHostConfig
[src]
pub fn new() -> Self
[src]
pub fn binds(&mut self, bind: String) -> &mut Self
[src]
pub fn tmpfs(&mut self, path: &str, option: &str) -> &mut Self
[src]
pub fn links(&mut self, link: String) -> &mut Self
[src]
pub fn memory(&mut self, memory: u64) -> &mut Self
[src]
pub fn memory_swap(&mut self, memory_swap: u64) -> &mut Self
[src]
pub fn memory_reservation(&mut self, memory_reservation: u64) -> &mut Self
[src]
pub fn kernel_memory(&mut self, kernel_memory: u64) -> &mut Self
[src]
pub fn cpu_percent(&mut self, cpu_percent: u64) -> &mut Self
[src]
pub fn cpu_shares(&mut self, cpu_shares: u64) -> &mut Self
[src]
pub fn cpu_period(&mut self, cpu_period: u64) -> &mut Self
[src]
pub fn cpu_quota(&mut self, cpu_quota: u64) -> &mut Self
[src]
pub fn cpuset_cpus(&mut self, cpuset_cpus: String) -> &mut Self
[src]
pub fn io_maximum_bandwidth(&mut self, io_maximum_bandwidth: u64) -> &mut Self
[src]
pub fn io_maximum_ops(&mut self, io_maximum_ops: u64) -> &mut Self
[src]
pub fn blkio_weight(&mut self, blkio_weight: u64) -> &mut Self
[src]
pub fn memory_swappiness(&mut self, memory_swappiness: i32) -> &mut Self
[src]
pub fn oom_kill_disable(&mut self, oom_kill_disable: bool) -> &mut Self
[src]
pub fn oom_score_adj(&mut self, oom_score_adj: u16) -> &mut Self
[src]
pub fn pid_mode(&mut self, pid_mode: String) -> &mut Self
[src]
pub fn pids_limit(&mut self, pids_limit: i16) -> &mut Self
[src]
pub fn publish_all_ports(&mut self, publish_all_ports: bool) -> &mut Self
[src]
pub fn privileged(&mut self, privileged: bool) -> &mut Self
[src]
pub fn readonly_rootfs(&mut self, readonly_rootfs: bool) -> &mut Self
[src]
pub fn dns(&mut self, dns: String) -> &mut Self
[src]
pub fn dns_options(&mut self, dns_option: String) -> &mut Self
[src]
pub fn dns_search(&mut self, dns_search: String) -> &mut Self
[src]
pub fn auto_remove(&mut self, auto_remove: bool) -> &mut Self
[src]
pub fn volumes_from(&mut self, volumes_from: String) -> &mut Self
[src]
pub fn cap_add(&mut self, cap_add: String) -> &mut Self
[src]
pub fn cap_drop(&mut self, cap_drop: String) -> &mut Self
[src]
pub fn group_add(&mut self, group_add: String) -> &mut Self
[src]
pub fn restart_policy(&mut self, restart_policy: RestartPolicy) -> &mut Self
[src]
pub fn network_mode(&mut self, network_mode: String) -> &mut Self
[src]
pub fn devices(&mut self, device: DeviceMapping) -> &mut Self
[src]
pub fn sysctls(&mut self, key: &str, value: &str) -> &mut Self
[src]
pub fn cgroup_parent(&mut self, cgroup_parent: String) -> &mut Self
[src]
pub fn volume_driver(&mut self, volume_driver: String) -> &mut Self
[src]
pub fn shm_size(&mut self, shm_size: u64) -> &mut Self
[src]
Trait Implementations
impl Clone for ContainerHostConfig
[src]
fn clone(&self) -> ContainerHostConfig
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for ContainerHostConfig
[src]
fn default() -> ContainerHostConfig
[src]
impl Debug for ContainerHostConfig
[src]
impl Serialize for ContainerHostConfig
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for ContainerHostConfig
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for ContainerHostConfig
impl Sync for ContainerHostConfig
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Erased for T
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,