pub struct AsyncTaskProfile {
pub task_id: Uuid,
pub task_name: String,
pub spawn_time: DateTime<Utc>,
pub completion_time: Option<DateTime<Utc>>,
pub duration_ms: Option<u64>,
pub state: AsyncTaskState,
pub cpu_time_ms: u64,
pub memory_bytes: u64,
pub yield_count: u64,
pub parent_task_id: Option<Uuid>,
}
Expand description
Async task profile
Fields§
§task_id: Uuid
Task ID
task_name: String
Task name
spawn_time: DateTime<Utc>
Spawn timestamp
completion_time: Option<DateTime<Utc>>
Completion timestamp
duration_ms: Option<u64>
Total duration
state: AsyncTaskState
Task state
cpu_time_ms: u64
CPU time used
memory_bytes: u64
Memory used
yield_count: u64
Yield count
parent_task_id: Option<Uuid>
Parent task ID
Trait Implementations§
Source§impl Clone for AsyncTaskProfile
impl Clone for AsyncTaskProfile
Source§fn clone(&self) -> AsyncTaskProfile
fn clone(&self) -> AsyncTaskProfile
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 AsyncTaskProfile
impl Debug for AsyncTaskProfile
Source§impl<'de> Deserialize<'de> for AsyncTaskProfile
impl<'de> Deserialize<'de> for AsyncTaskProfile
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 AsyncTaskProfile
impl RefUnwindSafe for AsyncTaskProfile
impl Send for AsyncTaskProfile
impl Sync for AsyncTaskProfile
impl Unpin for AsyncTaskProfile
impl UnwindSafe for AsyncTaskProfile
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