pub enum StreamEncoding {
Raw,
Msgpack,
}Expand description
encoding on a STREAM_DATA — a hint for how to interpret body, not
a second wire codec. See this section’s module-level note.
Variants§
Raw
body is opaque bytes.
Msgpack
body is a structured Value (despite the name — no msgpack
byte-level encoding actually happens; see the note above).
Implementations§
Trait Implementations§
Source§impl Clone for StreamEncoding
impl Clone for StreamEncoding
Source§fn clone(&self) -> StreamEncoding
fn clone(&self) -> StreamEncoding
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 moreimpl Copy for StreamEncoding
Source§impl Debug for StreamEncoding
impl Debug for StreamEncoding
impl Eq for StreamEncoding
Source§impl PartialEq for StreamEncoding
impl PartialEq for StreamEncoding
impl StructuralPartialEq for StreamEncoding
Auto Trait Implementations§
impl Freeze for StreamEncoding
impl RefUnwindSafe for StreamEncoding
impl Send for StreamEncoding
impl Sync for StreamEncoding
impl Unpin for StreamEncoding
impl UnsafeUnpin for StreamEncoding
impl UnwindSafe for StreamEncoding
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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