pub struct EngineBoot {Show 16 fields
pub runtime: Runtime,
pub config: SynapsConfig,
pub session: Session,
pub api_messages: Vec<Value>,
pub total_input_tokens: u64,
pub total_output_tokens: u64,
pub session_cost: f64,
pub abort_context: Option<String>,
pub continued: bool,
pub continue_info: Option<ContinueInfo>,
pub registry: Arc<CommandRegistry>,
pub keybind_registry: Arc<RwLock<KeybindRegistry>>,
pub mcp_server_count: usize,
pub system_prompt_path: PathBuf,
pub ext_manager: Arc<RwLock<ExtensionManager>>,
pub background: BackgroundTasks,
}Expand description
Result of the boot sequence — everything a renderer needs to start.
Fields§
§runtime: Runtime§config: SynapsConfig§session: Session§api_messages: Vec<Value>§total_input_tokens: u64§total_output_tokens: u64§session_cost: f64§abort_context: Option<String>§continued: bool§continue_info: Option<ContinueInfo>§registry: Arc<CommandRegistry>§keybind_registry: Arc<RwLock<KeybindRegistry>>Keybind registry. Uses std::sync::RwLock (not tokio) because keybind lookups are synchronous, fast, and called from input handling code that cannot await. This is safe as long as the lock is never held across an await point.
mcp_server_count: usize§system_prompt_path: PathBuf§ext_manager: Arc<RwLock<ExtensionManager>>§background: BackgroundTasksBackground tasks — inbox watcher, socket listener. Aborts on drop.
Auto Trait Implementations§
impl Freeze for EngineBoot
impl !RefUnwindSafe for EngineBoot
impl Send for EngineBoot
impl Sync for EngineBoot
impl Unpin for EngineBoot
impl UnsafeUnpin for EngineBoot
impl !UnwindSafe for EngineBoot
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.