pub enum Request {
Send {
address: String,
body: Value,
headers: Option<Value>,
replyAddress: Option<String>,
},
Publish {
address: String,
body: Value,
headers: Option<Value>,
replyAddress: Option<String>,
},
Register {
address: String,
headers: Option<Value>,
},
Unregister {
address: String,
headers: Option<Value>,
},
Ping,
}
Expand description
Message sent from client to vert.x eventbus, can be serialized to json.
The body is a json value provided by serde_json::value. For more explain for each fields, please visit
§Examples
use vertx_tcp_eventbus_bridge_client_rust::request::Request;
let req = Request::Send {
address: "address".to_string(),
body: json!(...),
headers: None,
replyAddress: None
};
Variants§
Implementations§
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
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