pub struct AppState {Show 15 fields
pub local_key: String,
pub vault: Arc<Vault>,
pub store: Arc<Store>,
pub http: Client,
pub dario: Option<Arc<dyn DarioRouter>>,
pub in_flight: AtomicI64,
pub started_ms: i64,
pub base_url: String,
pub anthropic_usage: Mutex<UsageCache>,
pub xai_usage: Mutex<UsageCache>,
pub amp_usage: Mutex<UsageCache>,
pub logins: LoginManager,
pub run_keys: RwLock<HashMap<String, CachedRunKey>>,
pub update_status: Arc<RwLock<Option<Value>>>,
pub daemon_updater: RwLock<Option<Arc<dyn DaemonUpdater>>>,
/* private fields */
}Fields§
§local_key: String§vault: Arc<Vault>§store: Arc<Store>§http: Client§dario: Option<Arc<dyn DarioRouter>>§in_flight: AtomicI64§started_ms: i64§base_url: String§anthropic_usage: Mutex<UsageCache>§xai_usage: Mutex<UsageCache>§amp_usage: Mutex<UsageCache>§logins: LoginManager§run_keys: RwLock<HashMap<String, CachedRunKey>>§update_status: Arc<RwLock<Option<Value>>>§daemon_updater: RwLock<Option<Arc<dyn DaemonUpdater>>>Auto Trait Implementations§
impl !Freeze for AppState
impl !RefUnwindSafe for AppState
impl !UnwindSafe 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