Skip to main content

Module pty

Module pty 

Source
Expand description

Interactive terminal (PTY-bridged WebSocket). RFC-038.

Provides:

  • PtyManager: in-kernel session registry, GC tick, access control.
  • [PtySession]: per-session state (PTY handle, principal, lifecycle).
  • PtyError: error type for manager operations.

The kernel exposes this through crate::kernel_handle::PtyApi.

Re-exports§

pub use config::PtyConfigSnapshot;
pub use error::PtyError;
pub use manager::PtyManager;
pub use session::PtySessionId;
pub use session::PtySessionInfo;
pub use session::PtySessionState;
pub use session::PtySize;

Modules§

config
Snapshot of PtyConfig for read-only access without holding the RwLock across an await point (RFC-038 §8.1).
error
Error type for PTY subsystem (RFC-038).
manager
PtyManager — session registry, GC tick, attach/detach (RFC-038 §5.3, §6.3, §8.3).
session
Per-session PTY state (RFC-038).