pub enum ServiceEvent {
ServiceDiscovered {
query_id: String,
service_id: String,
version: String,
provider_peer_id: String,
capabilities: HashMap<String, String>,
hop_count: u8,
},
ServiceRequestReceived {
request_id: String,
service_id: String,
method: String,
body: String,
sender: String,
},
ServiceResponseReceived {
request_id: String,
service_id: String,
status: String,
body: String,
provider_peer_id: String,
},
}Expand description
Events emitted by mesh service operations.
Variants§
ServiceDiscovered
A service was discovered on the mesh in response to a discovery query.
Fields
ServiceRequestReceived
A service request was received from another peer.
Fields
ServiceResponseReceived
A response to a service request was received.
Trait Implementations§
Source§impl Clone for ServiceEvent
impl Clone for ServiceEvent
Source§impl Debug for ServiceEvent
impl Debug for ServiceEvent
Source§impl PartialEq for ServiceEvent
impl PartialEq for ServiceEvent
impl StructuralPartialEq for ServiceEvent
Auto Trait Implementations§
impl Freeze for ServiceEvent
impl RefUnwindSafe for ServiceEvent
impl Send for ServiceEvent
impl Sync for ServiceEvent
impl Unpin for ServiceEvent
impl UnsafeUnpin for ServiceEvent
impl UnwindSafe for ServiceEvent
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