pub struct AsyncEventbusRabbitMQ { /* private fields */ }Implementations§
Source§impl AsyncEventbusRabbitMQ
impl AsyncEventbusRabbitMQ
pub fn new(config: Config, qos_config: QoSConfig) -> Self
pub async fn update_secret( &self, new_secret: &str, reason: &str, command_timeout: Option<Duration>, ) -> Result<(), AppError>
pub async fn publish( &self, exchange_name: &str, routing_key: &str, body: impl Into<Vec<u8>>, content_type: Option<&str>, content_encoding: ContentEncoding, command_timeout: Option<Duration>, delivery_mode: Option<DeliveryMode>, expiration: Option<u32>, ) -> Result<(), AppError>
pub async fn subscribe<F, Fut>( &self, exchange_name: &str, routing_key: &str, handler: F, process_timeout: Option<Duration>, command_timeout: Option<Duration>, ) -> Result<(), AppError>
pub async fn rpc_client( &self, exchange_name: &str, routing_key: &str, body: impl Into<Vec<u8>>, content_type: &str, content_encoding: ContentEncoding, response_timeout_millis: u32, command_timeout: Option<Duration>, delivery_mode: Option<DeliveryMode>, expiration: Option<u32>, ) -> Result<Vec<u8>, AppError>
pub async fn provide_resource<F, Fut>( &self, routing_key: &str, handler: F, process_timeout: Option<Duration>, command_timeout: Option<Duration>, ) -> Result<(), AppError>
pub async fn dispose(&self) -> Result<(), Box<dyn Error>>
Trait Implementations§
Source§impl Clone for AsyncEventbusRabbitMQ
impl Clone for AsyncEventbusRabbitMQ
Source§fn clone(&self) -> AsyncEventbusRabbitMQ
fn clone(&self) -> AsyncEventbusRabbitMQ
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 AsyncEventbusRabbitMQ
impl RefUnwindSafe for AsyncEventbusRabbitMQ
impl Send for AsyncEventbusRabbitMQ
impl Sync for AsyncEventbusRabbitMQ
impl Unpin for AsyncEventbusRabbitMQ
impl UnsafeUnpin for AsyncEventbusRabbitMQ
impl UnwindSafe for AsyncEventbusRabbitMQ
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