#[non_exhaustive]pub struct AppState {
pub shell: String,
pub pwd: Option<PathBuf>,
pub scrollback_limit: usize,
pub sessions: Arc<SessionStore>,
pub orphan_timeout: Duration,
}Expand description
Shared state passed to all request handlers.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.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.
orphan_timeout: DurationTime without clients before a session is reaped.
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