pub struct AppState {
pub languages: Arc<LanguageRegistry>,
pub client: Arc<Client>,
pub user_store: ModelHandle<UserStore>,
pub workspace_store: ModelHandle<WorkspaceStore>,
pub fs: Arc<dyn Fs>,
pub build_window_options: fn(_: Option<WindowBounds>, _: Option<Uuid>, _: &dyn Platform) -> WindowOptions<'static>,
pub initialize_workspace: fn(_: WeakViewHandle<Workspace>, _: bool, _: Arc<AppState>, _: AsyncAppContext) -> Task<Result<()>>,
pub background_actions: BackgroundActions,
pub node_runtime: Arc<dyn NodeRuntime>,
}
Fields§
§languages: Arc<LanguageRegistry>
§client: Arc<Client>
§user_store: ModelHandle<UserStore>
§workspace_store: ModelHandle<WorkspaceStore>
§fs: Arc<dyn Fs>
§build_window_options: fn(_: Option<WindowBounds>, _: Option<Uuid>, _: &dyn Platform) -> WindowOptions<'static>
§initialize_workspace: fn(_: WeakViewHandle<Workspace>, _: bool, _: Arc<AppState>, _: AsyncAppContext) -> Task<Result<()>>
§background_actions: BackgroundActions
§node_runtime: Arc<dyn NodeRuntime>
Auto Trait Implementations§
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