pub enum SubResult {
NewGlobal,
AlreadyGlobal,
NoChange,
}Expand description
subscribe_qot 返回的 commit 结果 (用于 quota 维度精确计算 — 对齐 C++
m_setSub 全局唯一计 quota).
C++ 对照: QotSubscribe.cpp:84-111. bNoSub = m_setSub.count(pairSubKey) == 0,
仅当全局 set 不存在该 key 时才 UseQuota().
Variants§
NewGlobal
全局首次订阅该 (security, sub_type) — quota 应 +1.
AlreadyGlobal
全局已有订阅, 本 conn 是新加入 — quota 不变.
NoChange
(conn_id, security, sub_type) 已在 set 中, 重复订阅 — quota 不变.
Trait Implementations§
impl Copy for SubResult
impl Eq for SubResult
impl StructuralPartialEq for SubResult
Auto Trait Implementations§
impl Freeze for SubResult
impl RefUnwindSafe for SubResult
impl Send for SubResult
impl Sync for SubResult
impl Unpin for SubResult
impl UnsafeUnpin for SubResult
impl UnwindSafe for SubResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.