pub enum ExecStatus {
Queued,
Running,
Success,
Timeout,
OomKilled,
Error,
Failed,
RateLimited,
}Expand description
执行状态枚举。
既用于任务当前状态(ExecTask::status),也用于最终结果(ExecResult::status)。
Variants§
Queued
已入队,等待并发槽位。
Running
已获得槽位,容器运行中。
Success
正常结束且退出码为 0。
Timeout
超过 timeout_secs 被强制终止。
OomKilled
触发内核 OOM killer。
Error
容器执行出错(非 0 退出码)。
Failed
系统层失败(拉起容器异常、排队超时等)。
RateLimited
触发速率限制。
D8:服务端从不构造此变体(限流在 insert 前直接拒绝,返回 429)。 保留供前端 ExecStatus label 反序列化兼容;勿在服务端 match 依赖它。
Trait Implementations§
Source§impl Clone for ExecStatus
impl Clone for ExecStatus
Source§fn clone(&self) -> ExecStatus
fn clone(&self) -> ExecStatus
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExecStatus
impl Debug for ExecStatus
Source§impl<'de> Deserialize<'de> for ExecStatus
impl<'de> Deserialize<'de> for ExecStatus
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ExecStatus
impl PartialEq for ExecStatus
Source§impl Serialize for ExecStatus
impl Serialize for ExecStatus
impl StructuralPartialEq for ExecStatus
Auto Trait Implementations§
impl Freeze for ExecStatus
impl RefUnwindSafe for ExecStatus
impl Send for ExecStatus
impl Sync for ExecStatus
impl Unpin for ExecStatus
impl UnsafeUnpin for ExecStatus
impl UnwindSafe for ExecStatus
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.
§impl<T> Transportable for Twhere
T: Serialize + DeserializeOwned + 'static,
impl<T> Transportable for Twhere
T: Serialize + DeserializeOwned + 'static,
§fn transport_to_bytes(&self) -> Vec<u8> ⓘ
fn transport_to_bytes(&self) -> Vec<u8> ⓘ
Serialize the type to a byte vector for transport
§fn transport_from_bytes(bytes: &[u8]) -> Result<T, Error<Error>>
fn transport_from_bytes(bytes: &[u8]) -> Result<T, Error<Error>>
Deserialize the type from a byte slice