pub struct AsyncTaskInfo {
pub task_id: u64,
pub task_name: String,
pub task_type: String,
pub total_bytes: u64,
pub current_memory: u64,
pub peak_memory: u64,
pub total_allocations: u64,
pub duration_ms: f64,
pub efficiency_score: f64,
pub is_completed: bool,
pub has_potential_leak: bool,
}Expand description
Async task information for dashboard
Fields§
§task_id: u64Task ID
task_name: StringTask name
task_type: StringTask type
total_bytes: u64Total bytes allocated
current_memory: u64Current memory usage
peak_memory: u64Peak memory usage
total_allocations: u64Number of allocations
duration_ms: f64Duration in milliseconds
efficiency_score: f64Efficiency score (0.0 - 1.0)
is_completed: boolWhether task is completed
has_potential_leak: boolWhether task has potential leak
Trait Implementations§
Source§impl Clone for AsyncTaskInfo
impl Clone for AsyncTaskInfo
Source§fn clone(&self) -> AsyncTaskInfo
fn clone(&self) -> AsyncTaskInfo
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 AsyncTaskInfo
impl Debug for AsyncTaskInfo
Source§impl<'de> Deserialize<'de> for AsyncTaskInfo
impl<'de> Deserialize<'de> for AsyncTaskInfo
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
Auto Trait Implementations§
impl Freeze for AsyncTaskInfo
impl RefUnwindSafe for AsyncTaskInfo
impl Send for AsyncTaskInfo
impl Sync for AsyncTaskInfo
impl Unpin for AsyncTaskInfo
impl UnsafeUnpin for AsyncTaskInfo
impl UnwindSafe for AsyncTaskInfo
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