Struct pulsar_binary_protocol_spec::commands::producer_command::ProducerCommand[][src]

pub struct ProducerCommand { /* fields omitted */ }

Implementations

impl ProducerCommand[src]

pub fn new(topic: &str) -> Self[src]

pub fn set_producer_id(&mut self, producer_id: ProducerId) -> &mut Self[src]

pub fn get_producer_id(&self) -> ProducerId[src]

pub fn set_request_id(&mut self, request_id: RequestId) -> &mut Self[src]

pub fn get_request_id(&self) -> RequestId[src]

pub fn set_producer_name(&mut self, producer_name: &str) -> &mut Self[src]

pub fn append_metadata(&mut self, metadata: &[(&str, &str)]) -> &mut Self[src]

pub fn clear_metadata(&mut self) -> &mut Self[src]

Trait Implementations

impl Clone for ProducerCommand[src]

impl Debug for ProducerCommand[src]

impl From<&'_ ProducerCommand> for Command[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.