pub struct DiagnosticStreamHandler<H> { /* private fields */ }Expand description
Wrapper that logs agent output while delegating to inner handler.
Note: Fields are used in the test module’s StreamHandler implementation. This struct is scaffolded for future production integration with ralph-adapters.
Implementations§
Source§impl<H> DiagnosticStreamHandler<H>
impl<H> DiagnosticStreamHandler<H>
Sourcepub fn new(inner: H, logger: Arc<Mutex<AgentOutputLogger>>) -> Self
pub fn new(inner: H, logger: Arc<Mutex<AgentOutputLogger>>) -> Self
Creates a new diagnostic stream handler wrapper.
Auto Trait Implementations§
impl<H> Freeze for DiagnosticStreamHandler<H>where
H: Freeze,
impl<H> RefUnwindSafe for DiagnosticStreamHandler<H>where
H: RefUnwindSafe,
impl<H> Send for DiagnosticStreamHandler<H>where
H: Send,
impl<H> Sync for DiagnosticStreamHandler<H>where
H: Sync,
impl<H> Unpin for DiagnosticStreamHandler<H>where
H: Unpin,
impl<H> UnwindSafe for DiagnosticStreamHandler<H>where
H: UnwindSafe,
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