Struct silk::entry::Entry
[−]
[src]
pub struct Entry { pub num_hashes: u64, pub id: Hash, pub event: Event, }
Fields
num_hashes: u64
id: Hash
event: Event
Methods
impl Entry
[src]
pub fn new_tick(num_hashes: u64, id: &Hash) -> Self
[src]
Creates a Entry from the number of hashes 'num_hashes' since the previous event and that resulting 'id'.
pub fn verify(&self, start_hash: &Hash) -> bool
[src]
Verifies self.id is the result of hashing a 'start_hash' 'self.num_hashes' times. If the event is not a Tick, then hash that as well.
Trait Implementations
impl Debug for Entry
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for Entry
[src]
fn eq(&self, __arg_0: &Entry) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Entry) -> bool
[src]
This method tests for !=
.