pub struct PtySession {
pub input_tx: Sender<Vec<u8>>,
pub output_rx: Arc<Mutex<Receiver<Vec<u8>>>>,
pub resize_tx: Sender<(u32, u32)>,
pub cancel: CancellationToken,
}Fields§
§input_tx: Sender<Vec<u8>>§output_rx: Arc<Mutex<Receiver<Vec<u8>>>>§resize_tx: Sender<(u32, u32)>Sender for resize requests (cols, rows) — forwarded to the SSH channel
cancel: CancellationTokenCancellation token — cancelled when this session is torn down. The WebSocket reader task should select on this to stop promptly.
Auto Trait Implementations§
impl Freeze for PtySession
impl !RefUnwindSafe for PtySession
impl Send for PtySession
impl Sync for PtySession
impl Unpin for PtySession
impl UnsafeUnpin for PtySession
impl !UnwindSafe for PtySession
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