pub enum StreamingChunkKind {
Continue,
Terminal,
Unary,
}Expand description
Inspect a RpcResponsePayload’s headers and decide whether
it’s a non-terminal streaming chunk (continue), a terminal
streaming chunk (end OR non-Ok status), OR a unary
response (no streaming header at all). Used by the client-side
fold to demux streaming vs unary responses without needing a
separate flag.
Variants§
Continue
Non-terminal chunk — yield body, continue waiting.
Terminal
Terminal chunk — yield body (if any), close stream.
Unary
Not a streaming response — unary semantics apply.
Trait Implementations§
Source§impl Clone for StreamingChunkKind
impl Clone for StreamingChunkKind
Source§fn clone(&self) -> StreamingChunkKind
fn clone(&self) -> StreamingChunkKind
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 moreSource§impl Debug for StreamingChunkKind
impl Debug for StreamingChunkKind
Source§impl PartialEq for StreamingChunkKind
impl PartialEq for StreamingChunkKind
Source§fn eq(&self, other: &StreamingChunkKind) -> bool
fn eq(&self, other: &StreamingChunkKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for StreamingChunkKind
impl Eq for StreamingChunkKind
impl StructuralPartialEq for StreamingChunkKind
Auto Trait Implementations§
impl Freeze for StreamingChunkKind
impl RefUnwindSafe for StreamingChunkKind
impl Send for StreamingChunkKind
impl Sync for StreamingChunkKind
impl Unpin for StreamingChunkKind
impl UnsafeUnpin for StreamingChunkKind
impl UnwindSafe for StreamingChunkKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.