pub struct EventHandlerConfig {
pub session_store: Option<Arc<dyn SessionPersistence>>,
pub session_id: Option<String>,
pub model_id: String,
pub cwd: PathBuf,
}Expand description
Configuration for the shared event handler. Both GUI and CLI provide their own config with the session store + current session state.
Fields§
§session_store: Option<Arc<dyn SessionPersistence>>If set, events will trigger session persistence.
session_id: Option<String>Current session ID (None if no session yet).
model_id: StringModel name (used when creating new sessions).
cwd: PathBufWorking directory (used when creating new sessions).
Auto Trait Implementations§
impl Freeze for EventHandlerConfig
impl !RefUnwindSafe for EventHandlerConfig
impl Send for EventHandlerConfig
impl Sync for EventHandlerConfig
impl Unpin for EventHandlerConfig
impl UnsafeUnpin for EventHandlerConfig
impl !UnwindSafe for EventHandlerConfig
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