pub struct PtyProcess {
pub master_fd: RawFd,
pub pid: Pid,
pub socket_path: PathBuf,
/* private fields */
}Fields§
§master_fd: RawFd§pid: Pid§socket_path: PathBufImplementations§
Source§impl PtyProcess
impl PtyProcess
pub fn spawn_new_detached(session_id: &str) -> Result<Session>
pub fn spawn_new_detached_with_name( session_id: &str, name: Option<String>, ) -> Result<Session>
pub fn attach_to_session(session: &Session) -> Result<Option<String>>
pub fn run_detached(self) -> Result<()>
pub fn kill_session(session_id: &str) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PtyProcess
impl RefUnwindSafe for PtyProcess
impl Send for PtyProcess
impl Sync for PtyProcess
impl Unpin for PtyProcess
impl UnwindSafe for PtyProcess
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