Struct rdkafka_sys::bindings::rd_kafka_message_s
source · #[repr(C)]pub struct rd_kafka_message_s {
pub err: rd_kafka_resp_err_t,
pub rkt: *mut rd_kafka_topic_t,
pub partition: i32,
pub payload: *mut c_void,
pub len: usize,
pub key: *mut c_void,
pub key_len: usize,
pub offset: i64,
pub _private: *mut c_void,
}
Fields§
§err: rd_kafka_resp_err_t
§rkt: *mut rd_kafka_topic_t
§partition: i32
§payload: *mut c_void
§len: usize
§key: *mut c_void
§key_len: usize
§offset: i64
§_private: *mut c_void
Trait Implementations§
source§impl Clone for rd_kafka_message_s
impl Clone for rd_kafka_message_s
source§fn clone(&self) -> rd_kafka_message_s
fn clone(&self) -> rd_kafka_message_s
Returns a copy 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 moresource§impl Debug for rd_kafka_message_s
impl Debug for rd_kafka_message_s
impl Copy for rd_kafka_message_s
Auto Trait Implementations§
impl Freeze for rd_kafka_message_s
impl RefUnwindSafe for rd_kafka_message_s
impl !Send for rd_kafka_message_s
impl !Sync for rd_kafka_message_s
impl Unpin for rd_kafka_message_s
impl UnwindSafe for rd_kafka_message_s
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)