Struct diem_types::block_metadata::NewBlockEvent
source · pub struct NewBlockEvent { /* private fields */ }
Implementations§
source§impl NewBlockEvent
impl NewBlockEvent
pub fn new( round: u64, proposer: AccountAddress, votes: Vec<AccountAddress>, timestamp: u64 ) -> Self
pub fn round(&self) -> u64
pub fn proposer(&self) -> AccountAddress
pub fn votes(&self) -> Vec<AccountAddress> ⓘ
Trait Implementations§
source§impl Clone for NewBlockEvent
impl Clone for NewBlockEvent
source§fn clone(&self) -> NewBlockEvent
fn clone(&self) -> NewBlockEvent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'de> Deserialize<'de> for NewBlockEvent
impl<'de> Deserialize<'de> for NewBlockEvent
source§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
Auto Trait Implementations§
impl RefUnwindSafe for NewBlockEvent
impl Send for NewBlockEvent
impl Sync for NewBlockEvent
impl Unpin for NewBlockEvent
impl UnwindSafe for NewBlockEvent
Blanket Implementations§
source§impl<T> TestOnlyHash for Twhere
T: Serialize + ?Sized,
impl<T> TestOnlyHash for Twhere T: Serialize + ?Sized,
source§fn test_only_hash(&self) -> HashValue
fn test_only_hash(&self) -> HashValue
Generates a hash used only for tests.