use crate::session::SessionEvent;
use codetether_rlm::traits::RlmEventBus;
pub(super) struct BusWrap(pub(crate) crate::session::SessionBus);
impl RlmEventBus for BusWrap {
fn emit_progress(&self, event: codetether_rlm::RlmProgressEvent) {
self.0.emit(SessionEvent::RlmProgress(event));
}
fn emit_completion(&self, event: codetether_rlm::RlmCompletion) {
self.0.emit(SessionEvent::RlmComplete(event));
}
}