pub enum Frame {
Input(Vec<u8>),
Resize(PtyResize),
Interrupt(bool),
Detach(bool),
}Variants§
Input(Vec<u8>)
Raw bytes to write to the PTY master (stdin).
Resize(PtyResize)
Terminal resize; daemon applies via portable-pty resize.
Interrupt(bool)
Send SIGINT / CTRL_C_EVENT to the child process group.
Detach(bool)
Clean detach. Daemon keeps the session alive but releases this attachment.
Implementations§
Source§impl Frame
impl Frame
Sourcepub fn merge(
field: &mut Option<Frame>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<Frame>, tag: u32, wire_type: WireType, buf: &mut impl Buf, ctx: DecodeContext, ) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into self.
Sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
impl Eq for Frame
impl StructuralPartialEq for Frame
Auto Trait Implementations§
impl Freeze for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnsafeUnpin for Frame
impl UnwindSafe for Frame
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