pub struct CommandProducer {
pub topic: String,
pub producer_id: u64,
pub request_id: u64,
pub producer_name: Option<String>,
pub encrypted: Option<bool>,
pub metadata: Vec<KeyValue>,
pub schema: Option<Schema>,
pub epoch: Option<u64>,
pub user_provided_producer_name: Option<bool>,
}Fields§
§topic: String§producer_id: u64§request_id: u64§producer_name: Option<String>§encrypted: Option<bool>§metadata: Vec<KeyValue>§schema: Option<Schema>§epoch: Option<u64>If producer reconnect to broker, the epoch of this producer will +1
user_provided_producer_name: Option<bool>Indicate the name of the producer is generated or user provided Use default true here is in order to be forward compatible with the client
Implementations§
Source§impl CommandProducer
impl CommandProducer
Sourcepub fn producer_name(&self) -> &str
pub fn producer_name(&self) -> &str
Returns the value of producer_name, or the default value if producer_name is unset.
Sourcepub fn encrypted(&self) -> bool
pub fn encrypted(&self) -> bool
Returns the value of encrypted, or the default value if encrypted is unset.
Sourcepub fn user_provided_producer_name(&self) -> bool
pub fn user_provided_producer_name(&self) -> bool
Returns the value of user_provided_producer_name, or the default value if user_provided_producer_name is unset.
Trait Implementations§
Source§impl Clone for CommandProducer
impl Clone for CommandProducer
Source§fn clone(&self) -> CommandProducer
fn clone(&self) -> CommandProducer
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 CommandProducer
impl Debug for CommandProducer
Source§impl Default for CommandProducer
impl Default for CommandProducer
Source§impl Message for CommandProducer
impl Message for CommandProducer
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for CommandProducer
impl PartialEq for CommandProducer
impl StructuralPartialEq for CommandProducer
Auto Trait Implementations§
impl Freeze for CommandProducer
impl RefUnwindSafe for CommandProducer
impl Send for CommandProducer
impl Sync for CommandProducer
impl Unpin for CommandProducer
impl UnsafeUnpin for CommandProducer
impl UnwindSafe for CommandProducer
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more