pub struct SandboxInfo {
pub id: SandboxId,
pub status: SandboxStatus,
pub created_at: DateTime<Utc>,
pub memory_used: u64,
pub cpu_used: f32,
pub executions: u32,
pub config: SandboxConfig,
}Expand description
沙箱信息
Fields§
§id: SandboxId沙箱 ID
status: SandboxStatus状态
created_at: DateTime<Utc>创建时间
memory_used: u64当前内存使用
cpu_used: f32当前 CPU 使用
executions: u32执行次数
config: SandboxConfig配置
Trait Implementations§
Source§impl Clone for SandboxInfo
impl Clone for SandboxInfo
Source§fn clone(&self) -> SandboxInfo
fn clone(&self) -> SandboxInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SandboxInfo
impl RefUnwindSafe for SandboxInfo
impl Send for SandboxInfo
impl Sync for SandboxInfo
impl Unpin for SandboxInfo
impl UnsafeUnpin for SandboxInfo
impl UnwindSafe for SandboxInfo
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more