pub struct SendCommand { /* private fields */ }
Implementations§
Source§impl SendCommand
impl SendCommand
pub fn single( 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
pub fn set_producer_id(&mut self, producer_id: ProducerId) -> &mut Self
pub fn set_producer_name(&mut self, producer_name: ProducerName) -> &mut Self
pub fn get_sequence_id(&self) -> SequenceId
pub fn set_deliver_at_time(&mut self, dt: DateTime<Utc>) -> &mut Self
pub fn set_deliver_after( &mut self, dur: StdDuration, ) -> Result<&mut Self, String>
Trait Implementations§
Source§impl Clone for SendCommand
impl Clone for SendCommand
Source§fn clone(&self) -> SendCommand
fn clone(&self) -> SendCommand
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 SendCommand
impl Debug for SendCommand
Source§impl From<&SendCommand> for Command
impl From<&SendCommand> for Command
Source§fn from(c: &SendCommand) -> Self
fn from(c: &SendCommand) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for SendCommand
impl RefUnwindSafe for SendCommand
impl Send for SendCommand
impl Sync for SendCommand
impl Unpin for SendCommand
impl UnwindSafe for SendCommand
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
)