pub enum Frame {
Output(Vec<u8>),
ExitCode(i32),
MissedBytes(u64),
Error(String),
StolenBy(String),
}Variants§
Output(Vec<u8>)
Raw bytes from the PTY master (output).
ExitCode(i32)
Child exited; final exit code. Always followed by stream close.
MissedBytes(u64)
Daemon dropped this many bytes from the head of the ring buffer before this point. Client should render a “missed N bytes” marker.
Error(String)
Error during streaming; daemon will close the stream after sending.
StolenBy(String)
Sent when the attached client was evicted via a steal from a peer.
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