pub struct ExportTask {
pub id: u64,
pub name: String,
pub state: String,
pub created_at_ms: u128,
pub duration_ms: f64,
pub poll_count: u64,
pub run_time_ms: f64,
pub parent_id: Option<u64>,
}Expand description
Serializable task data
Fields§
§id: u64Unique task identifier
name: StringTask name (function name)
state: StringCurrent task state (Running, Blocked, etc.)
created_at_ms: u128Task creation timestamp in milliseconds
duration_ms: f64Total duration in milliseconds
poll_count: u64Number of times the task was polled
run_time_ms: f64Total time spent running (not waiting) in milliseconds
parent_id: Option<u64>Parent task ID if this is a spawned task
Trait Implementations§
Source§impl Debug for ExportTask
impl Debug for ExportTask
Source§impl<'de> Deserialize<'de> for ExportTask
impl<'de> Deserialize<'de> for ExportTask
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 From<&TaskInfo> for ExportTask
impl From<&TaskInfo> for ExportTask
Auto Trait Implementations§
impl Freeze for ExportTask
impl RefUnwindSafe for ExportTask
impl Send for ExportTask
impl Sync for ExportTask
impl Unpin for ExportTask
impl UnwindSafe for ExportTask
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> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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