pub struct TaskMeta {
pub id: u64,
pub parent: Option<u64>,
pub tokio_id: Option<u64>,
pub name: String,
pub created_at: u64,
pub status: TaskStatus,
pub memory_usage: u64,
pub allocation_count: usize,
}Expand description
Task metadata
Fields§
§id: u64Unique task ID (primary key)
parent: Option<u64>Parent task ID (for hierarchy)
tokio_id: Option<u64>Tokio task ID (optional, for async integration)
name: StringTask name
created_at: u64Creation timestamp (nanoseconds)
status: TaskStatusTask status
memory_usage: u64Total memory usage in bytes
allocation_count: usizeNumber of allocations
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TaskMeta
impl RefUnwindSafe for TaskMeta
impl Send for TaskMeta
impl Sync for TaskMeta
impl Unpin for TaskMeta
impl UnsafeUnpin for TaskMeta
impl UnwindSafe for TaskMeta
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