pub struct TunnelChunk {
pub payload: Vec<u8>,
pub is_eos: bool,
pub is_error: bool,
}Expand description
A chunk received on a tunnel channel.
This is delivered to tunnel receivers when DATA frames arrive on the channel. For streaming RPCs, this is also used to deliver typed responses that need to be deserialized by the client.
Fields§
§payload: Vec<u8>The payload data.
is_eos: boolTrue if this is the final chunk (EOS received).
is_error: boolTrue if this chunk represents an error (ERROR flag set).
When true, payload should be parsed as an error using parse_error_payload.
Trait Implementations§
Source§impl Clone for TunnelChunk
impl Clone for TunnelChunk
Source§fn clone(&self) -> TunnelChunk
fn clone(&self) -> TunnelChunk
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TunnelChunk
impl RefUnwindSafe for TunnelChunk
impl Send for TunnelChunk
impl Sync for TunnelChunk
impl Unpin for TunnelChunk
impl UnwindSafe for TunnelChunk
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)