Struct workspace2::AppState
source · pub struct AppState {
pub languages: Arc<LanguageRegistry>,
pub client: Arc<Client>,
pub user_store: Model<UserStore>,
pub workspace_store: Model<WorkspaceStore>,
pub fs: Arc<dyn Fs>,
pub build_window_options: fn(_: Option<WindowBounds>, _: Option<Uuid>, _: &mut AppContext) -> WindowOptions,
pub node_runtime: Arc<dyn NodeRuntime>,
}
Fields§
§languages: Arc<LanguageRegistry>
§client: Arc<Client>
§user_store: Model<UserStore>
§workspace_store: Model<WorkspaceStore>
§fs: Arc<dyn Fs>
§build_window_options: fn(_: Option<WindowBounds>, _: Option<Uuid>, _: &mut AppContext) -> WindowOptions
§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