pub struct AppState {
pub session_store: SessionStore,
pub app_fn: Box<dyn Fn(&mut Ui<'_>) + Send + Sync>,
pub sse_channels: DashMap<Uuid, Sender<String>>,
pub config: RustViewConfig,
}Expand description
Shared application state.
Fields§
§session_store: SessionStore§app_fn: Box<dyn Fn(&mut Ui<'_>) + Send + Sync>The user’s app function.
sse_channels: DashMap<Uuid, Sender<String>>Broadcast channel for SSE events per session.
config: RustViewConfigServer configuration.
Auto Trait Implementations§
impl Freeze for AppState
impl !RefUnwindSafe for AppState
impl Send for AppState
impl Sync for AppState
impl Unpin for AppState
impl UnsafeUnpin 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