Enum kitsune_p2p::gossip::sharded_gossip::EncodedTimedBloomFilter [−][src]
pub enum EncodedTimedBloomFilter {
NoOverlap,
MissingAllHashes {
time_window: TimeWindow,
},
HaveHashes {
filter: PoolBuf,
time_window: TimeWindow,
},
}
Expand description
An encoded timed bloom filter of missing op hashes.
Variants
NoOverlap
I have no overlap with your agents Pleas don’t send any ops.
MissingAllHashes
Fields
time_window: TimeWindow
The time window that we are missing hashes for.
I have overlap and I have no hashes. Please send all your ops.
HaveHashes
Fields
filter: PoolBuf
The encoded bloom filter.
time_window: TimeWindow
The time window these hashes are for.
I have overlap and I have some hashes. Please send any missing ops.
Trait Implementations
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for EncodedTimedBloomFilter
impl Send for EncodedTimedBloomFilter
impl Sync for EncodedTimedBloomFilter
impl Unpin for EncodedTimedBloomFilter
impl UnwindSafe for EncodedTimedBloomFilter
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more