pub struct Master { /* private fields */ }Expand description
A PTY master over a descriptor this process owns.
Implementations§
Source§impl Master
impl Master
pub fn new(file: File) -> Self
Sourcepub fn resize(&self, size: WinSize) -> Result<()>
pub fn resize(&self, size: WinSize) -> Result<()>
Resize the terminal, so its guest reflows.
§Errors
The descriptor is not a PTY, or the OS refused the call.
Sourcepub fn process_group_leader(&self) -> Option<i32>
pub fn process_group_leader(&self) -> Option<i32>
The process group the guest leads, when it leads one.
pub fn raw_fd(&self) -> RawFd
Trait Implementations§
Auto Trait Implementations§
impl Forget for Master
impl Freeze for Master
impl Move for Master
impl RefUnwindSafe for Master
impl Send for Master
impl Sync for Master
impl Unpin for Master
impl UnsafeUnpin for Master
impl UnwindSafe for Master
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