pub enum Response {
ERR(ErrorType),
MESSAGE(ResponseMessageObject),
MessageFail(ResponseFailObject),
PONG,
}
Expand description
Main message received from vert.x eventbus.
It is usually deserialized automatically by [codec]. For more explain for each fields, please visit
Variants§
ERR(ErrorType)
Error defined by vert.x eventbus mechanism
MESSAGE(ResponseMessageObject)
Regular user defined message on success
MessageFail(ResponseFailObject)
Regular user defined message on fail
PONG
For ping request
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
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