pub enum Offer {
Queued,
AlreadyQueued,
Evicted(u64),
Rejected,
}Variants§
Queued
AlreadyQueued
已经在队里,按更高的分数调整了位置(或者分数没更高,保持不变)。
Evicted(u64)
队列满了,挤掉了这个哈希对应的链接;调用方要把它从去重表里删掉,以后还能再进来。
Rejected
Trait Implementations§
impl Eq for Offer
impl StructuralPartialEq for Offer
Auto Trait Implementations§
impl Forget for Offer
impl Freeze for Offer
impl Move for Offer
impl RefUnwindSafe for Offer
impl Send for Offer
impl Sync for Offer
impl Unpin for Offer
impl UnsafeUnpin for Offer
impl UnwindSafe for Offer
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.