pub struct EventHandler { /* private fields */ }
Implementations§
Source§impl EventHandler
impl EventHandler
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) -> 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 EventHandler
impl Clone for EventHandler
Source§fn clone(&self) -> EventHandler
fn clone(&self) -> EventHandler
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 EventHandler
impl !RefUnwindSafe for EventHandler
impl Send for EventHandler
impl Sync for EventHandler
impl Unpin for EventHandler
impl !UnwindSafe for EventHandler
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