pub struct AppState {
pub shell: String,
pub pwd: Option<PathBuf>,
pub scrollback_limit: usize,
pub sessions: Arc<SessionStore>,
}Expand description
Shared state passed to all request handlers.
Fields§
§shell: StringShell binary path (e.g. /bin/bash).
pwd: Option<PathBuf>Working directory for new shell sessions.
scrollback_limit: usizeScrollback buffer size in bytes.
sessions: Arc<SessionStore>Global session registry.
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 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