pub struct EventCollector { /* private fields */ }Implementations§
Source§impl EventCollector
impl EventCollector
pub fn new() -> Self
pub fn for_turn( thread_id: impl Into<String>, turn_id: impl Into<String>, ) -> Self
pub fn observe(&mut self, event: &Event)
pub fn observe_notification(&mut self, notification: &ServerNotification)
pub fn agent_message(&self) -> &str
pub fn latest_diff(&self) -> Option<&str>
pub fn is_complete(&self) -> bool
pub fn terminal_status(&self) -> Option<&TurnStatus>
pub fn errors(&self) -> &[TurnError]
pub fn output_bytes(&self) -> usize
Trait Implementations§
Source§impl Clone for EventCollector
impl Clone for EventCollector
Source§fn clone(&self) -> EventCollector
fn clone(&self) -> EventCollector
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 EventCollector
impl Debug for EventCollector
Source§impl Default for EventCollector
impl Default for EventCollector
Source§fn default() -> EventCollector
fn default() -> EventCollector
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EventCollector
impl RefUnwindSafe for EventCollector
impl Send for EventCollector
impl Sync for EventCollector
impl Unpin for EventCollector
impl UnsafeUnpin for EventCollector
impl UnwindSafe for EventCollector
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