pub struct Eventbus { /* private fields */ }
Expand description
The core struct to communicate with vert.x eventbus.
Can be created by calling Eventbus::connect
.
Implementations§
Source§impl Eventbus
impl Eventbus
pub fn connect( address: IpAddr, port: u16, ) -> impl Future<Item = (Eventbus, EventbusReadStream, EventbusWriteFuture), Error = IoError>
pub fn register( &self, address: String, headers: Option<Value>, ) -> Result<ResponseStream, SendError<Request>>
pub fn unregister(&self, address: String)
pub fn ping(&mut self) -> Result<(), SendError<Request>>
Sourcepub fn send(
&self,
address: String,
message: Value,
) -> Result<(), SendError<Request>>
pub fn send( &self, address: String, message: Value, ) -> Result<(), SendError<Request>>
send with no reply
Sourcepub fn send_reply(
&self,
address: String,
message: Value,
) -> Result<ResponseFut, SendError<Request>>
pub fn send_reply( &self, address: String, message: Value, ) -> Result<ResponseFut, SendError<Request>>
send with reply
pub fn publish( &mut self, address: String, message: Value, ) -> Result<(), SendError<Request>>
Auto Trait Implementations§
impl Freeze for Eventbus
impl !RefUnwindSafe for Eventbus
impl Send for Eventbus
impl Sync for Eventbus
impl Unpin for Eventbus
impl !UnwindSafe for Eventbus
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