pub struct ExecutionRecord {
pub id: u64,
pub event_name: String,
pub timestamp: SystemTime,
pub execution_type: ExecutionType,
pub status: ExecutionStatus,
pub duration: Option<Duration>,
pub error: Option<String>,
pub subscriber_id: Option<usize>,
pub receiver_count: Option<usize>,
pub lagged_count: Option<usize>,
}Expand description
单条执行记录。
Fields§
§id: u64记录唯一 ID。
event_name: String事件名称。
timestamp: SystemTime记录时间。
execution_type: ExecutionType执行类型。
status: ExecutionStatus执行状态。
duration: Option<Duration>执行耗时。
error: Option<String>错误信息(如果有)。
subscriber_id: Option<usize>订阅者 ID(仅 Handler 执行时有)。
receiver_count: Option<usize>接收者数量(仅发布时有)。
lagged_count: Option<usize>滞后消息数(仅 Lagged 状态时有)。
Trait Implementations§
Source§impl Clone for ExecutionRecord
impl Clone for ExecutionRecord
Source§fn clone(&self) -> ExecutionRecord
fn clone(&self) -> ExecutionRecord
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 moreSource§impl Debug for ExecutionRecord
impl Debug for ExecutionRecord
Source§impl<'de> Deserialize<'de> for ExecutionRecord
impl<'de> Deserialize<'de> for ExecutionRecord
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ExecutionRecord
impl RefUnwindSafe for ExecutionRecord
impl Send for ExecutionRecord
impl Sync for ExecutionRecord
impl Unpin for ExecutionRecord
impl UnsafeUnpin for ExecutionRecord
impl UnwindSafe for ExecutionRecord
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