pub enum Frame {
Bytes(Vec<u8>),
Eof(bool),
ExitCode(i32),
MissedBytes(u64),
Error(String),
StolenBy(String),
}Variants§
Bytes(Vec<u8>)
Eof(bool)
The child closed this stream (EOF). Terminal frame for the attachment; the daemon will close the stream connection after.
ExitCode(i32)
The child has exited; the int payload is the exit code. Terminal frame.
MissedBytes(u64)
Error(String)
StolenBy(String)
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