pub struct PtyMaster { /* private fields */ }Expand description
The master handle of a pseudoterminal.
Implementations§
Source§impl PtyMaster
impl PtyMaster
Sourcepub fn size(&self) -> Result<TerminalSize>
pub fn size(&self) -> Result<TerminalSize>
Queries the current terminal geometry for this PTY.
Sourcepub fn resize(&self, size: TerminalSize) -> Result<()>
pub fn resize(&self, size: TerminalSize) -> Result<()>
Resizes this PTY.
Sourcepub fn resize_geometry(&self, geometry: TerminalGeometry) -> Result<()>
pub fn resize_geometry(&self, geometry: TerminalGeometry) -> Result<()>
Resizes this PTY, preserving optional pixel geometry where supported.
Sourcepub fn try_clone_io(&self) -> Result<PtyIo>
pub fn try_clone_io(&self) -> Result<PtyIo>
Duplicates the master handle as an I/O endpoint.
Sourcepub fn into_owned_fd(self) -> OwnedFd
pub fn into_owned_fd(self) -> OwnedFd
Consumes this Unix PTY master and returns the owned file descriptor.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PtyMaster
impl RefUnwindSafe for PtyMaster
impl Send for PtyMaster
impl Sync for PtyMaster
impl Unpin for PtyMaster
impl UnsafeUnpin for PtyMaster
impl UnwindSafe for PtyMaster
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