#[non_exhaustive]pub struct MergeReport {
pub added: Vec<MessageId>,
pub differing: Vec<MessageId>,
pub superseded: Vec<MessageId>,
}Available on crate feature
client only.Expand description
What Thread::merge_messages_from added to a thread, and what it left
as it was.
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.added: Vec<MessageId>The messages added, in the order the other thread holds them. Each is
in Thread::messages now: a tool result behind the message that
holds its call, every other message at the end.
differing: Vec<MessageId>The ids both threads hold as different messages. This thread’s copy was kept, and the other thread’s was not taken. Empty when the two threads started from the same messages and each only added its own.
superseded: Vec<MessageId>The tool messages of the other thread that
abandon_tool_call made there for a call
this thread holds an answer to, in the order the other thread holds
them. Each stood in for a result the other thread never got, and was
not taken: the call keeps the answer this thread has.
Trait Implementations§
Source§impl Clone for MergeReport
impl Clone for MergeReport
Source§impl Debug for MergeReport
impl Debug for MergeReport
Source§impl Default for MergeReport
impl Default for MergeReport
impl Eq for MergeReport
Source§impl PartialEq for MergeReport
impl PartialEq for MergeReport
impl StructuralPartialEq for MergeReport
Auto Trait Implementations§
impl Forget for MergeReport
impl Freeze for MergeReport
impl Move for MergeReport
impl RefUnwindSafe for MergeReport
impl Send for MergeReport
impl Sync for MergeReport
impl Unpin for MergeReport
impl UnsafeUnpin for MergeReport
impl UnwindSafe for MergeReport
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.