pub struct Registry { /* private fields */ }Implementations§
Source§impl Registry
impl Registry
Sourcepub fn record_event(&self, iface: &str, outcome: &str, key_id: &str)
pub fn record_event(&self, iface: &str, outcome: &str, key_id: &str)
记录一次 auth/trade 事件
Sourcepub fn record_limit_reject(&self, iface: &str, key_id: &str, reason_cat: &str)
pub fn record_limit_reject(&self, iface: &str, key_id: &str, reason_cat: &str)
记录一次限额拒(reason_cat 见文档)
Sourcepub fn record_ws_filtered(&self, required_scope: &str, client_key_id: &str)
pub fn record_ws_filtered(&self, required_scope: &str, client_key_id: &str)
记录 WS 因 scope 不足被过滤掉的一条推送
Sourcepub fn render_prometheus(&self) -> String
pub fn render_prometheus(&self) -> String
Prometheus text exposition 格式输出
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Registry
impl !RefUnwindSafe for Registry
impl Send for Registry
impl Sync for Registry
impl Unpin for Registry
impl UnwindSafe for Registry
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