pub struct AppState {
pub current: Option<PathBuf>,
pub tx: Sender<String>,
pub clients: Arc<AtomicUsize>,
}Expand description
Shared server state.
Fields§
§current: Option<PathBuf>The project the daemon was started in, if any. Used only as the default
target when a request omits ?project=; every UI request names its project
explicitly, so this is just a convenience for CLI-less callers. None when
wipe serve runs outside a board (a purely global viewer).
tx: Sender<String>Broadcast channel for live-update notifications.
clients: Arc<AtomicUsize>Number of live UI WebSocket clients. Drives idle-shutdown: when this is 0 for long enough, an auto-served daemon exits.
Trait Implementations§
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