pub struct StreamMessage {
pub compressed: bool,
pub payload: Vec<u8>,
}Expand description
One complete gRPC envelope; decompression belongs to the codec boundary.
Fields§
§compressed: boolWhether the payload uses the negotiated message compression algorithm.
payload: Vec<u8>Encoded message bytes without the five-byte envelope.
Trait Implementations§
Source§impl Clone for StreamMessage
impl Clone for StreamMessage
Source§impl Debug for StreamMessage
impl Debug for StreamMessage
impl Eq for StreamMessage
Source§impl PartialEq for StreamMessage
impl PartialEq for StreamMessage
impl StructuralPartialEq for StreamMessage
Auto Trait Implementations§
impl Freeze for StreamMessage
impl RefUnwindSafe for StreamMessage
impl Send for StreamMessage
impl Sync for StreamMessage
impl Unpin for StreamMessage
impl UnsafeUnpin for StreamMessage
impl UnwindSafe for StreamMessage
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