Struct vertx_rust::vertx::EventBus
source · pub struct EventBus<CM: 'static + ClusterManager + Send + Sync + RefUnwindSafe> { /* private fields */ }
Implementations§
source§impl<CM: 'static + ClusterManager + Send + Sync + RefUnwindSafe> EventBus<CM>
impl<CM: 'static + ClusterManager + Send + Sync + RefUnwindSafe> EventBus<CM>
pub fn new(options: EventBusOptions) -> EventBus<CM>
pub fn local_consumer<OP>(&self, address: &str, op: OP)where OP: Fn(Arc<Message>, Arc<EventBus<CM>>) -> BoxFuture<()> + Send + 'static + Sync + RefUnwindSafe,
pub fn consumer<OP>(&self, address: &str, op: OP)where OP: Fn(Arc<Message>, Arc<EventBus<CM>>) -> BoxFuture<()> + Send + 'static + Sync + RefUnwindSafe,
pub fn send(&self, address: &str, request: Body)
pub fn publish(&self, address: &str, request: Body)
pub fn request<OP>(&self, address: &str, request: Body, op: OP)where OP: Fn(Arc<Message>, Arc<EventBus<CM>>) -> BoxFuture<()> + Send + 'static + Sync + RefUnwindSafe,
Trait Implementations§
impl<CM: 'static + ClusterManager + Send + Sync + RefUnwindSafe> RefUnwindSafe for EventBus<CM>
Auto Trait Implementations§
impl<CM> Send for EventBus<CM>
impl<CM> Sync for EventBus<CM>
impl<CM> Unpin for EventBus<CM>
impl<CM> !UnwindSafe for EventBus<CM>
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