pub struct CommandHandler { /* private fields */ }
Implementations§
Source§impl CommandHandler
impl CommandHandler
pub fn parse_payload<T>(&self) -> Result<T, Error>where
T: for<'de> Deserialize<'de>,
pub fn get_payload(&self) -> &HashMap<String, Value>
pub async fn ack( &self, payload_for_next_step: Value, ) -> Result<(), RabbitMQError>
pub async fn nack_with_delay( &self, delay: Duration, max_retries: i32, ) -> Result<(i32, Duration), RabbitMQError>
pub async fn nack_with_fibonacci_strategy( &self, max_occurrence: i32, max_retries: i32, ) -> Result<(i32, Duration, i32), RabbitMQError>
Trait Implementations§
Source§impl Clone for CommandHandler
impl Clone for CommandHandler
Source§fn clone(&self) -> CommandHandler
fn clone(&self) -> CommandHandler
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for CommandHandler
impl !RefUnwindSafe for CommandHandler
impl Send for CommandHandler
impl Sync for CommandHandler
impl Unpin for CommandHandler
impl !UnwindSafe for CommandHandler
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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