pub struct BroadcastKey {
pub producer_id: String,
pub issuer_key_hash: Vec<u8>,
pub epoch: u64,
}Expand description
Broadcast key for foca’s deduplication. Two broadcasts with the same (producer_id, issuer_key_hash) scope where the newer one has a higher epoch invalidate the older one.
Fields§
§producer_id: String§issuer_key_hash: Vec<u8>§epoch: u64Trait Implementations§
Source§impl Clone for BroadcastKey
impl Clone for BroadcastKey
Source§fn clone(&self) -> BroadcastKey
fn clone(&self) -> BroadcastKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BroadcastKey
impl Debug for BroadcastKey
Source§impl Invalidates for BroadcastKey
impl Invalidates for BroadcastKey
Source§fn invalidates(&self, other: &Self) -> bool
fn invalidates(&self, other: &Self) -> bool
When
item.invalidates(&other) it means that Foca will
keep item and discard other from its dissemination
backlog.Source§impl PartialEq for BroadcastKey
impl PartialEq for BroadcastKey
Source§fn eq(&self, other: &BroadcastKey) -> bool
fn eq(&self, other: &BroadcastKey) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for BroadcastKey
impl StructuralPartialEq for BroadcastKey
Auto Trait Implementations§
impl Freeze for BroadcastKey
impl RefUnwindSafe for BroadcastKey
impl Send for BroadcastKey
impl Sync for BroadcastKey
impl Unpin for BroadcastKey
impl UnsafeUnpin for BroadcastKey
impl UnwindSafe for BroadcastKey
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