pub struct StreamingPtyInput { /* private fields */ }Expand description
Cloneable input side for a running PTY session.
Implementations§
Source§impl StreamingPtyInput
impl StreamingPtyInput
Sourcepub async fn write_stdin(&self, data: &[u8]) -> Result<(), BoxError>
pub async fn write_stdin(&self, data: &[u8]) -> Result<(), BoxError>
Write terminal data to the PTY.
Sourcepub async fn resize(&self, cols: u16, rows: u16) -> Result<(), BoxError>
pub async fn resize(&self, cols: u16, rows: u16) -> Result<(), BoxError>
Request terminal resize.
Sourcepub async fn close(&self) -> Result<(), BoxError>
pub async fn close(&self) -> Result<(), BoxError>
Close the PTY control stream. The guest treats this as a session stop.
Sourcepub async fn send_signal(
&self,
signal: ExecutionProcessSignal,
) -> Result<(), BoxError>
pub async fn send_signal( &self, signal: ExecutionProcessSignal, ) -> Result<(), BoxError>
Deliver a typed Linux workload signal to the PTY process group.
Trait Implementations§
Source§impl Clone for StreamingPtyInput
impl Clone for StreamingPtyInput
Source§fn clone(&self) -> StreamingPtyInput
fn clone(&self) -> StreamingPtyInput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for StreamingPtyInput
impl !UnwindSafe for StreamingPtyInput
impl Freeze for StreamingPtyInput
impl Send for StreamingPtyInput
impl Sync for StreamingPtyInput
impl Unpin for StreamingPtyInput
impl UnsafeUnpin for StreamingPtyInput
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more