pub struct OwnedReadPty(/* private fields */);
Available on crate feature
async
only.Expand description
Owned read half of a Pty
Implementations§
Source§impl OwnedReadPty
impl OwnedReadPty
Sourcepub fn unsplit(self, write_half: OwnedWritePty) -> Result<Pty>
pub fn unsplit(self, write_half: OwnedWritePty) -> Result<Pty>
Attempt to join the two halves of a Pty
back into a single instance.
The two halves must have originated from calling
into_split
on a single instance.
§Errors
Returns an error if the two halves came from different Pty
instances. The mismatched halves are returned as part of the error.
Trait Implementations§
Source§impl AsyncRead for OwnedReadPty
impl AsyncRead for OwnedReadPty
Auto Trait Implementations§
impl Freeze for OwnedReadPty
impl !RefUnwindSafe for OwnedReadPty
impl Send for OwnedReadPty
impl Sync for OwnedReadPty
impl Unpin for OwnedReadPty
impl !UnwindSafe for OwnedReadPty
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