pub struct TcbSnapshot {Show 15 fields
pub id: TaskId,
pub parent: Option<TaskId>,
pub state: TaskState,
pub turns: u32,
pub total_tokens: u64,
pub started_at_ms: Option<u64>,
pub max_tokens: u32,
pub max_turns: u32,
pub max_total_tokens: u64,
pub max_wall_ms: Option<u64>,
pub wait_reason: Option<String>,
pub wait_children: Option<Vec<TaskId>>,
pub deferred_until: Option<u64>,
pub caps: Vec<TaskId>,
pub proc: Option<ProcInfoSnapshot>,
}Expand description
Serializable snapshot of a TCB (Task Control Block).
Fields§
§id: TaskId§parent: Option<TaskId>§state: TaskState§turns: u32§total_tokens: u64§started_at_ms: Option<u64>§max_tokens: u32§max_turns: u32§max_total_tokens: u64§max_wall_ms: Option<u64>§wait_reason: Option<String>§wait_children: Option<Vec<TaskId>>§deferred_until: Option<u64>§caps: Vec<TaskId>§proc: Option<ProcInfoSnapshot>Trait Implementations§
Source§impl Clone for TcbSnapshot
impl Clone for TcbSnapshot
Source§fn clone(&self) -> TcbSnapshot
fn clone(&self) -> TcbSnapshot
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 moreSource§impl Debug for TcbSnapshot
impl Debug for TcbSnapshot
Source§impl<'de> Deserialize<'de> for TcbSnapshot
impl<'de> Deserialize<'de> for TcbSnapshot
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<&Tcb> for TcbSnapshot
impl From<&Tcb> for TcbSnapshot
Auto Trait Implementations§
impl Freeze for TcbSnapshot
impl RefUnwindSafe for TcbSnapshot
impl Send for TcbSnapshot
impl Sync for TcbSnapshot
impl Unpin for TcbSnapshot
impl UnsafeUnpin for TcbSnapshot
impl UnwindSafe for TcbSnapshot
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