pub struct GrpcMessage {
pub compressed: bool,
pub payload: Bytes,
}Expand description
Represents a single length-prefixed gRPC message payload.
Fields§
§compressed: boolWhether the message is compressed, indicated by the first byte of the Length-Prefixed-Message header.
payload: BytesThe actual message payload (compressed or uncompressed, depending on flags).
Trait Implementations§
Source§impl Clone for GrpcMessage
impl Clone for GrpcMessage
Source§fn clone(&self) -> GrpcMessage
fn clone(&self) -> GrpcMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§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 GrpcMessage
impl RefUnwindSafe for GrpcMessage
impl Send for GrpcMessage
impl Sync for GrpcMessage
impl Unpin for GrpcMessage
impl UnsafeUnpin for GrpcMessage
impl UnwindSafe for GrpcMessage
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