pub struct AppState {
pub config: Arc<Config>,
pub client: Arc<OpenAiClient>,
pub plugins: Arc<PluginRegistry>,
pub broadcaster: Sender<String>,
}
Expand description
Shared application state for the MCP server.
Fields§
§config: Arc<Config>
§client: Arc<OpenAiClient>
§plugins: Arc<PluginRegistry>
§broadcaster: Sender<String>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AppState
impl !RefUnwindSafe for AppState
impl Send for AppState
impl Sync for AppState
impl Unpin for AppState
impl !UnwindSafe for AppState
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