pub struct RmqRpcClient { /* private fields */ }
Implementations§
Source§impl RmqRpcClient
impl RmqRpcClient
pub async fn connect(url: &str) -> Result<Self, Error>
pub async fn declare_queue(&self, queue: &str) -> Result<&Self, Error>
pub async fn send_message( &self, routing_key: &str, payload: Vec<u8>, ) -> Result<Delivery, Error>
pub async fn send_message_without_reply( &self, routing_key: &str, payload: Vec<u8>, ) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RmqRpcClient
impl !RefUnwindSafe for RmqRpcClient
impl Send for RmqRpcClient
impl Sync for RmqRpcClient
impl Unpin for RmqRpcClient
impl !UnwindSafe for RmqRpcClient
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