pub struct AppState {Show 21 fields
pub config: SharedConfig,
pub config_path: PathBuf,
pub pipeline: SharedPipeline,
pub process_manager: Arc<ProcessManager>,
pub vkey_store: Arc<VirtualKeyStore>,
pub package_manager: Arc<RwLock<PackageManager>>,
pub wasm_handle: Arc<RwLock<Option<WasmHandle>>>,
pub native_handle: Arc<RwLock<Option<NativeHandle>>>,
pub resolved_apps: Arc<RwLock<ResolvedAppMap>>,
pub capability_registry: Arc<RwLock<CapabilityRegistry>>,
pub active_profile: Arc<RwLock<AppProfile>>,
pub core_policy: Arc<CorePolicy>,
pub generation_store: Arc<RwLock<GenerationStoreMap>>,
pub package_index: Arc<PackageIndex>,
pub repo_root: PathBuf,
pub data_dir: PathBuf,
pub runtime_token: Option<String>,
pub runtime_token_path: Option<PathBuf>,
pub chat_providers: Arc<RwLock<Vec<ChatProviderInfo>>>,
pub shutdown_tx: Arc<Mutex<Option<Sender<()>>>>,
pub stream_buffer: Arc<Mutex<HashMap<String, Vec<String>>>>,
}Fields§
§config: SharedConfig§config_path: PathBuf§pipeline: SharedPipeline§process_manager: Arc<ProcessManager>§vkey_store: Arc<VirtualKeyStore>§package_manager: Arc<RwLock<PackageManager>>§wasm_handle: Arc<RwLock<Option<WasmHandle>>>§native_handle: Arc<RwLock<Option<NativeHandle>>>§resolved_apps: Arc<RwLock<ResolvedAppMap>>§capability_registry: Arc<RwLock<CapabilityRegistry>>§active_profile: Arc<RwLock<AppProfile>>§core_policy: Arc<CorePolicy>§generation_store: Arc<RwLock<GenerationStoreMap>>§package_index: Arc<PackageIndex>§repo_root: PathBuf§data_dir: PathBuf§runtime_token: Option<String>§runtime_token_path: Option<PathBuf>§chat_providers: Arc<RwLock<Vec<ChatProviderInfo>>>§shutdown_tx: Arc<Mutex<Option<Sender<()>>>>§stream_buffer: Arc<Mutex<HashMap<String, Vec<String>>>>Native stream buffer: session_id -> pending token chunks. Written by host_chat_completion_stream, read by /api/stream/tokens.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for AppState
impl !UnwindSafe for AppState
impl Freeze for AppState
impl Send for AppState
impl Sync for AppState
impl Unpin for AppState
impl UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
Source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self file descriptor.Source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
Source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: Sized + AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: Sized + AsFilelike,
Set the “status” flags for the
self file descriptor. Read moreSource§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more