Struct Update

Source
pub struct Update {
Show 16 fields pub resources: Option<PathBuf>, pub blkio_weight: Option<u64>, pub cpu_period: Option<u64>, pub cpu_quota: Option<u64>, pub cpu_rt_period: Option<u64>, pub cpu_rt_runtime: Option<u64>, pub cpu_share: Option<u64>, pub cpuset_cpus: Option<String>, pub cpuset_mems: Option<String>, pub memory: Option<u64>, pub memory_reservation: Option<u64>, pub memory_swap: Option<i64>, pub pids_limit: Option<i64>, pub l3_cache_schema: Option<String>, pub mem_bw_schema: Option<String>, pub container_id: String,
}
Expand description

Update running container resource constraints

Fields§

§resources: Option<PathBuf>

Read the new resource limits from the given json file. Use - to read from stdin. If this option is used, all other options are ignored.

§blkio_weight: Option<u64>

Set a new I/O weight

§cpu_period: Option<u64>

Set CPU CFS period to be used for hardcapping (in microseconds)

§cpu_quota: Option<u64>

Set CPU usage limit within a given period (in microseconds)

§cpu_rt_period: Option<u64>

Set CPU realtime period to be used for hardcapping (in microseconds)

§cpu_rt_runtime: Option<u64>

Set CPU realtime hardcap limit (in microseconds)

§cpu_share: Option<u64>

Set CPU shares (relative weight vs. other containers)

§cpuset_cpus: Option<String>

Set CPU(s) to use. The list can contain commas and ranges. For example: 0-3,7

§cpuset_mems: Option<String>

Set memory node(s) to use. The list format is the same as for –cpuset-cpus.

§memory: Option<u64>

Set memory limit to num bytes.

§memory_reservation: Option<u64>

Set memory reservation (or soft limit) to num bytes.

§memory_swap: Option<i64>

Set total memory + swap usage to num bytes. Use -1 to unset the limit (i.e. use unlimited swap).

§pids_limit: Option<i64>

Set the maximum number of processes allowed in the container

§l3_cache_schema: Option<String>

Set the value for Intel RDT/CAT L3 cache schema.

§mem_bw_schema: Option<String>

Set the Intel RDT/MBA memory bandwidth schema.

§container_id: String

Trait Implementations§

Source§

impl Args for Update

Source§

fn group_id() -> Option<Id>

Report the ArgGroup::id for this set of arguments
Source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate self via FromArgMatches::update_from_arg_matches_mut Read more
Source§

impl CommandFactory for Update

Source§

fn command<'b>() -> Command

Build a Command that can instantiate Self. Read more
Source§

fn command_for_update<'b>() -> Command

Build a Command that can update self. Read more
Source§

impl Debug for Update

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FromArgMatches for Update

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

impl Parser for Update

Source§

fn parse() -> Self

Parse from std::env::args_os(), exit on error.
Source§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
Source§

fn parse_from<I, T>(itr: I) -> Self
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Parse from iterator, exit on error.
Source§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
Source§

fn update_from<I, T>(&mut self, itr: I)
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Update from iterator, exit on error. Read more
Source§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Update from iterator, return Err on error.

Auto Trait Implementations§

§

impl Freeze for Update

§

impl RefUnwindSafe for Update

§

impl Send for Update

§

impl Sync for Update

§

impl Unpin for Update

§

impl UnwindSafe for Update

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.