Struct pulsar_binary_protocol_spec::commands::send_command::SendCommand [−][src]
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]
sequence_id: SequenceId,
properties: impl Into<Option<MessageProperties>>,
msg: impl AsRef<[u8]>,
compression: impl Into<Option<CompressionType>>
) -> Self
pub fn batch(
sequence_id: SequenceId,
msgs: Vec<(impl Into<MessageProperties>, impl AsRef<[u8]>)>,
compression: impl Into<Option<CompressionType>>
) -> Self
[src]
sequence_id: SequenceId,
msgs: Vec<(impl Into<MessageProperties>, impl AsRef<[u8]>)>,
compression: impl Into<Option<CompressionType>>
) -> Self
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]
&mut self,
dur: StdDuration
) -> Result<&mut Self, String>
Trait Implementations
impl Clone for SendCommand
[src]
fn clone(&self) -> SendCommand
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for SendCommand
[src]
impl From<&'_ SendCommand> for Command
[src]
fn from(c: &SendCommand) -> Self
[src]
Auto Trait Implementations
impl RefUnwindSafe for SendCommand
[src]
impl Send for SendCommand
[src]
impl Sync for SendCommand
[src]
impl Unpin for SendCommand
[src]
impl UnwindSafe for SendCommand
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,