#[non_exhaustive]pub struct GraphRun {
pub state: GraphState,
pub last: Vec<String>,
pub usage: Usage,
pub elapsed: Duration,
}Expand description
A graph run, whole or (in a GraphError) partial.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.state: GraphStateWhat the run did.
last: Vec<String>The nodes of the last batch that finished, in order.
usage: UsageThe model tokens the nodes that finished spent.
elapsed: DurationHow long the run took.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for GraphRun
impl Freeze for GraphRunwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<(String, String)>: Freeze,
PhantomData<(String, usize)>: Freeze,
PhantomData<String>: Freeze,
*const ArcInner<HashMap<TypeId, Arc<dyn Any + Sync + Send>>> is !null: Freeze,
PhantomData<ArcInner<HashMap<TypeId, Arc<dyn Any + Sync + Send>>>>: Freeze,
impl Move for GraphRun
impl RefUnwindSafe for GraphRunwhere
RunState: RefUnwindSafe,
impl Send for GraphRun
impl Sync for GraphRun
impl Unpin for GraphRun
impl UnsafeUnpin for GraphRunwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(String, String)>: UnsafeUnpin,
PhantomData<(String, usize)>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const ArcInner<HashMap<TypeId, Arc<dyn Any + Sync + Send>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<HashMap<TypeId, Arc<dyn Any + Sync + Send>>>>: UnsafeUnpin,
impl UnwindSafe for GraphRunwhere
RawVecInner: UnwindSafe,
HashMap<String, String>: UnwindSafe,
HashMap<String, usize>: UnwindSafe,
RunState: UnwindSafe,
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