pub struct ExecutionRecordPolicy {Show 17 fields
pub name: Option<String>,
pub auto_remove: bool,
pub restart_policy: ExecutionRestartPolicy,
pub max_restart_count: u32,
pub health_check: Option<ExecutionHealthCheck>,
pub healthcheck_disabled: bool,
pub log_config: LogConfig,
pub volume_names: Vec<String>,
pub platform: Option<String>,
pub init: bool,
pub devices: Vec<String>,
pub gpus: Option<String>,
pub shm_size: Option<u64>,
pub stop_signal: Option<String>,
pub stop_timeout: Option<u64>,
pub oom_kill_disable: bool,
pub oom_score_adj: Option<i32>,
}Expand description
Caller-owned policy projected into the canonical local execution record.
The complete value is persisted with the creation request so retries cannot
silently reuse an execution with different lifecycle or local resource
policy. Runtime launch requirements remain in BoxConfig.
Fields§
§name: Option<String>User-visible local name. None lets the runtime assign a safe name.
auto_remove: boolRemove the execution automatically after it stops.
restart_policy: ExecutionRestartPolicyAutomatic restart behavior.
max_restart_count: u32Maximum automatic restart count, where zero means unlimited.
health_check: Option<ExecutionHealthCheck>Effective caller or cached-image health check.
healthcheck_disabled: boolPrevent a later image-defined health check from being enabled.
log_config: LogConfigRuntime log driver policy.
volume_names: Vec<String>Named volumes represented by the resolved mounts in BoxConfig.
platform: Option<String>Requested OCI platform retained for inspection and image selection.
init: boolWhether the caller requested an init process.
devices: Vec<String>Requested host device mappings.
gpus: Option<String>Requested GPU selection.
shm_size: Option<u64>Shared-memory size in bytes.
stop_signal: Option<String>Signal used for graceful stop.
stop_timeout: Option<u64>Graceful stop timeout in seconds.
oom_kill_disable: boolWhether the caller requested OOM-killer suppression.
oom_score_adj: Option<i32>Requested host OOM score adjustment.
Trait Implementations§
Source§impl Clone for ExecutionRecordPolicy
impl Clone for ExecutionRecordPolicy
Source§fn clone(&self) -> ExecutionRecordPolicy
fn clone(&self) -> ExecutionRecordPolicy
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ExecutionRecordPolicy
impl Debug for ExecutionRecordPolicy
Source§impl Default for ExecutionRecordPolicy
impl Default for ExecutionRecordPolicy
Source§impl<'de> Deserialize<'de> for ExecutionRecordPolicy
impl<'de> Deserialize<'de> for ExecutionRecordPolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for ExecutionRecordPolicy
Source§impl PartialEq for ExecutionRecordPolicy
impl PartialEq for ExecutionRecordPolicy
Source§impl Serialize for ExecutionRecordPolicy
impl Serialize for ExecutionRecordPolicy
impl StructuralPartialEq for ExecutionRecordPolicy
Auto Trait Implementations§
impl Freeze for ExecutionRecordPolicy
impl RefUnwindSafe for ExecutionRecordPolicy
impl Send for ExecutionRecordPolicy
impl Sync for ExecutionRecordPolicy
impl Unpin for ExecutionRecordPolicy
impl UnsafeUnpin for ExecutionRecordPolicy
impl UnwindSafe for ExecutionRecordPolicy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.