pub struct BackgroundTaskState {
pub running: Vec<BackgroundTask>,
pub stopped_tasks: Vec<StoppedBackgroundTask>,
pub result_event: Option<Value>,
pub result_count: usize,
pub turn_open: bool,
}Expand description
Background tasks and print-mode turn state over a message list.
Fields§
§running: Vec<BackgroundTask>Tasks that never reported an end
stopped_tasks: Vec<StoppedBackgroundTask>Tasks stopped while the main thread was idle; a stop the model asked for itself is followed by a main-thread reply, which clears the list
result_event: Option<Value>Last main-thread result event
result_count: usize§turn_open: boolWhether the main thread is inside a turn (no result since its last reply)
Trait Implementations§
Source§impl Clone for BackgroundTaskState
impl Clone for BackgroundTaskState
Source§impl Debug for BackgroundTaskState
impl Debug for BackgroundTaskState
Source§impl Default for BackgroundTaskState
impl Default for BackgroundTaskState
impl Eq for BackgroundTaskState
Source§impl PartialEq for BackgroundTaskState
impl PartialEq for BackgroundTaskState
impl StructuralPartialEq for BackgroundTaskState
Auto Trait Implementations§
impl Forget for BackgroundTaskState
impl Freeze for BackgroundTaskState
impl Move for BackgroundTaskState
impl RefUnwindSafe for BackgroundTaskState
impl Send for BackgroundTaskState
impl Sync for BackgroundTaskState
impl Unpin for BackgroundTaskState
impl UnsafeUnpin for BackgroundTaskState
impl UnwindSafe for BackgroundTaskState
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.