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)
pub fn consumer<OP>(&self, address: &str, op: OP)
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)
Trait Implementations§
impl<CM: 'static + ClusterManager + Send + Sync + RefUnwindSafe> RefUnwindSafe for EventBus<CM>
Auto Trait Implementations§
impl<CM> !Freeze for EventBus<CM>
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