pub struct CodingCliEventStream { /* private fields */ }Expand description
Subscriber handle backed by a broadcast::Receiver. Drops missed
events silently — same semantics as DeepResearchEventStream.
Implementations§
Source§impl CodingCliEventStream
impl CodingCliEventStream
pub fn new(rx: Receiver<CodingCliEvent>) -> Self
Sourcepub async fn recv(&mut self) -> Option<CodingCliEvent>
pub async fn recv(&mut self) -> Option<CodingCliEvent>
Wait for the next event. Returns None once the channel closes.
Auto Trait Implementations§
impl !RefUnwindSafe for CodingCliEventStream
impl !UnwindSafe for CodingCliEventStream
impl Freeze for CodingCliEventStream
impl Send for CodingCliEventStream
impl Sync for CodingCliEventStream
impl Unpin for CodingCliEventStream
impl UnsafeUnpin for CodingCliEventStream
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