Struct pulsar_binary_protocol_spec::commands::send_command::SendCommand[][src]

pub struct SendCommand { /* fields omitted */ }

Implementations

impl SendCommand[src]

pub fn single(
    sequence_id: SequenceId,
    properties: impl Into<Option<MessageProperties>>,
    msg: impl AsRef<[u8]>,
    compression: impl Into<Option<CompressionType>>
) -> Self
[src]

pub fn batch(
    sequence_id: SequenceId,
    msgs: Vec<(impl Into<MessageProperties>, impl AsRef<[u8]>)>,
    compression: impl Into<Option<CompressionType>>
) -> Self
[src]

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

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

pub fn get_sequence_id(&self) -> SequenceId[src]

pub fn set_deliver_at_time(&mut self, dt: DateTime<Utc>) -> &mut Self[src]

pub fn set_deliver_after(
    &mut self,
    dur: StdDuration
) -> Result<&mut Self, String>
[src]

Trait Implementations

impl Clone for SendCommand[src]

impl Debug for SendCommand[src]

impl From<&'_ SendCommand> 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.