pub enum GatewayEvent {
ServiceRegistered(ServiceId),
ServiceUnregistered(ServiceId),
ServiceStatusChanged {
service_id: ServiceId,
old_status: ServiceStatus,
new_status: ServiceStatus,
},
ToolRegistered {
tool_name: String,
service_id: ServiceId,
},
NodeRegistered {
node_id: String,
service_id: ServiceId,
},
CallbackReceived {
callback_type: CallbackType,
service_id: ServiceId,
},
Error(String),
}Expand description
Gateway events
Variants§
ServiceRegistered(ServiceId)
Service registered
ServiceUnregistered(ServiceId)
Service unregistered
ServiceStatusChanged
Service status changed
ToolRegistered
Tool registered
NodeRegistered
Node registered
CallbackReceived
Callback received
Error(String)
Error occurred
Trait Implementations§
Source§impl Clone for GatewayEvent
impl Clone for GatewayEvent
Source§fn clone(&self) -> GatewayEvent
fn clone(&self) -> GatewayEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for GatewayEvent
impl RefUnwindSafe for GatewayEvent
impl Send for GatewayEvent
impl Sync for GatewayEvent
impl Unpin for GatewayEvent
impl UnsafeUnpin for GatewayEvent
impl UnwindSafe for GatewayEvent
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