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 Masterwhere
I32NotAllOnes: Freeze,
impl Move for Master
impl RefUnwindSafe for Masterwhere
I32NotAllOnes: RefUnwindSafe,
impl Send for Masterwhere
I32NotAllOnes: Send,
impl Sync for Masterwhere
I32NotAllOnes: Sync,
impl Unpin for Masterwhere
I32NotAllOnes: Unpin,
impl UnsafeUnpin for Masterwhere
I32NotAllOnes: UnsafeUnpin,
impl UnwindSafe for Masterwhere
I32NotAllOnes: UnwindSafe,
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