pub enum RuntimeEvent {
Startup {
name: String,
timestamp: Instant,
},
Shutdown {
name: String,
timestamp: Instant,
},
TaskStateChanged(StateEvent),
HealthCheckFailed {
check_name: String,
reason: String,
timestamp: Instant,
},
ServiceRegistered {
service_name: String,
service_id: String,
timestamp: Instant,
},
ServiceDeregistered {
service_name: String,
service_id: String,
timestamp: Instant,
},
}Expand description
运行时事件
运行时级别的事件
Variants§
Startup
运行时启动
Shutdown
运行时停机
TaskStateChanged(StateEvent)
任务状态变更
HealthCheckFailed
健康检查失败
ServiceRegistered
服务注册成功
ServiceDeregistered
服务注销
Implementations§
Trait Implementations§
Source§impl Clone for RuntimeEvent
impl Clone for RuntimeEvent
Source§fn clone(&self) -> RuntimeEvent
fn clone(&self) -> RuntimeEvent
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 RuntimeEvent
impl RefUnwindSafe for RuntimeEvent
impl Send for RuntimeEvent
impl Sync for RuntimeEvent
impl Unpin for RuntimeEvent
impl UnsafeUnpin for RuntimeEvent
impl UnwindSafe for RuntimeEvent
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