pub struct ResponseEnvelope {
pub correlation_id: i32,
pub body: Bytes,
}Expand description
Decoded Kafka response envelope.
Fields§
§correlation_id: i32Correlation id decoded from the response header.
body: BytesResponse body bytes, advanced past the response header.
Trait Implementations§
Source§impl Clone for ResponseEnvelope
impl Clone for ResponseEnvelope
Source§fn clone(&self) -> ResponseEnvelope
fn clone(&self) -> ResponseEnvelope
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 ResponseEnvelope
impl Debug for ResponseEnvelope
impl Eq for ResponseEnvelope
Source§impl PartialEq for ResponseEnvelope
impl PartialEq for ResponseEnvelope
Source§fn eq(&self, other: &ResponseEnvelope) -> bool
fn eq(&self, other: &ResponseEnvelope) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ResponseEnvelope
Auto Trait Implementations§
impl !Freeze for ResponseEnvelope
impl RefUnwindSafe for ResponseEnvelope
impl Send for ResponseEnvelope
impl Sync for ResponseEnvelope
impl Unpin for ResponseEnvelope
impl UnsafeUnpin for ResponseEnvelope
impl UnwindSafe for ResponseEnvelope
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