pub struct SpawnContext {
pub turn_index: usize,
pub step_index: usize,
}Expand description
Context about how a sidechain was spawned from a parent session.
Fields§
§turn_index: usizeTurn index (0-based) in the parent session where this sidechain was spawned.
step_index: usizeStep index (0-based) within the turn where the Task tool was called.
Trait Implementations§
Source§impl Clone for SpawnContext
impl Clone for SpawnContext
Source§fn clone(&self) -> SpawnContext
fn clone(&self) -> SpawnContext
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 SpawnContext
impl Debug for SpawnContext
Source§impl<'de> Deserialize<'de> for SpawnContext
impl<'de> Deserialize<'de> for SpawnContext
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 SpawnContext
impl RefUnwindSafe for SpawnContext
impl Send for SpawnContext
impl Sync for SpawnContext
impl Unpin for SpawnContext
impl UnwindSafe for SpawnContext
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