pub struct ProducerCommand { /* private fields */ }
Implementations§
Source§impl ProducerCommand
impl ProducerCommand
pub fn new(topic: &str) -> Self
pub fn set_producer_id(&mut self, producer_id: ProducerId) -> &mut Self
pub fn get_producer_id(&self) -> ProducerId
pub fn set_request_id(&mut self, request_id: RequestId) -> &mut Self
pub fn get_request_id(&self) -> RequestId
pub fn set_producer_name(&mut self, producer_name: &str) -> &mut Self
pub fn append_metadata(&mut self, metadata: &[(&str, &str)]) -> &mut Self
pub fn clear_metadata(&mut self) -> &mut Self
Trait Implementations§
Source§impl Clone for ProducerCommand
impl Clone for ProducerCommand
Source§fn clone(&self) -> ProducerCommand
fn clone(&self) -> ProducerCommand
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 ProducerCommand
impl Debug for ProducerCommand
Source§impl From<&ProducerCommand> for Command
impl From<&ProducerCommand> for Command
Source§fn from(c: &ProducerCommand) -> Self
fn from(c: &ProducerCommand) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for ProducerCommand
impl RefUnwindSafe for ProducerCommand
impl Send for ProducerCommand
impl Sync for ProducerCommand
impl Unpin for ProducerCommand
impl UnwindSafe for ProducerCommand
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§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
)