pub struct CollaborationContext { /* private fields */ }Implementations§
Source§impl CollaborationContext
impl CollaborationContext
pub fn new(agent_count: usize) -> Self
pub fn add_agent(&mut self)
pub fn record( &mut self, speaker: impl Into<String>, text: impl Into<String>, active: &[bool], )
pub fn mark_seen(&mut self, slot: usize)
Sourcepub fn rewind(&mut self, slot: usize)
pub fn rewind(&mut self, slot: usize)
Rewind one agent’s watermark after a replacement/reload so its next turn receives the retained public journal again.
Sourcepub fn swap_agents(&mut self, first: usize, second: usize)
pub fn swap_agents(&mut self, first: usize, second: usize)
Follow two roster members when their logical slots exchange places. Watermarks belong to the adapter, rather than to the numeric slot, so moving a live agent must move its context cursor with it as well.
pub fn unseen(&mut self, slot: usize) -> String
Trait Implementations§
Source§impl Clone for CollaborationContext
impl Clone for CollaborationContext
Source§fn clone(&self) -> CollaborationContext
fn clone(&self) -> CollaborationContext
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 CollaborationContext
impl Debug for CollaborationContext
impl Eq for CollaborationContext
Source§impl PartialEq for CollaborationContext
impl PartialEq for CollaborationContext
impl StructuralPartialEq for CollaborationContext
Auto Trait Implementations§
impl Freeze for CollaborationContext
impl RefUnwindSafe for CollaborationContext
impl Send for CollaborationContext
impl Sync for CollaborationContext
impl Unpin for CollaborationContext
impl UnsafeUnpin for CollaborationContext
impl UnwindSafe for CollaborationContext
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