pub struct GovernorStats {
pub total_requests: u64,
pub allowed_requests: u64,
pub rejected_requests: u64,
pub banned_requests: u64,
pub error_count: u64,
pub last_updated: Option<DateTime<Utc>>,
}Expand description
Governor 统计信息
保持向后兼容性的统计信息结构体。
Fields§
§total_requests: u64总请求数
allowed_requests: u64允许的请求数
rejected_requests: u64拒绝的请求数
banned_requests: u64封禁的请求数
error_count: u64错误数
last_updated: Option<DateTime<Utc>>最后更新时间
Trait Implementations§
Source§impl Clone for GovernorStats
impl Clone for GovernorStats
Source§impl Debug for GovernorStats
impl Debug for GovernorStats
Source§impl Default for GovernorStats
impl Default for GovernorStats
Source§impl From<StatsSnapshot> for GovernorStats
impl From<StatsSnapshot> for GovernorStats
Source§fn from(snapshot: StatsSnapshot) -> Self
fn from(snapshot: StatsSnapshot) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GovernorStats
impl RefUnwindSafe for GovernorStats
impl Send for GovernorStats
impl Sync for GovernorStats
impl Unpin for GovernorStats
impl UnsafeUnpin for GovernorStats
impl UnwindSafe for GovernorStats
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