pub struct SignedBlock {
pub data_proposals: Vec<(LaneId, Vec<DataProposal>)>,
pub consensus_proposal: ConsensusProposal,
pub certificate: AggregateSignature,
}Fields§
§data_proposals: Vec<(LaneId, Vec<DataProposal>)>§consensus_proposal: ConsensusProposal§certificate: AggregateSignatureImplementations§
Source§impl SignedBlock
impl SignedBlock
pub fn parent_hash(&self) -> &ConsensusProposalHash
pub fn height(&self) -> BlockHeight
pub fn has_txs(&self) -> bool
pub fn count_txs(&self) -> usize
pub fn iter_txs( &self, ) -> impl Iterator<Item = (LaneId, DataProposalHash, &Vec<Transaction>)>
pub fn iter_txs_with_id( &self, ) -> impl Iterator<Item = (LaneId, TxId, &Transaction)>
Trait Implementations§
Source§impl BorshDeserialize for SignedBlock
impl BorshDeserialize for SignedBlock
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for SignedBlock
impl BorshSerialize for SignedBlock
Source§impl Clone for SignedBlock
impl Clone for SignedBlock
Source§fn clone(&self) -> SignedBlock
fn clone(&self) -> SignedBlock
Returns a duplicate 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 Debug for SignedBlock
impl Debug for SignedBlock
Source§impl Default for SignedBlock
impl Default for SignedBlock
Source§impl<'de> Deserialize<'de> for SignedBlock
impl<'de> Deserialize<'de> for SignedBlock
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
Source§impl Display for SignedBlock
impl Display for SignedBlock
Source§impl Hashed<ConsensusProposalHash> for SignedBlock
impl Hashed<ConsensusProposalHash> for SignedBlock
fn hashed(&self) -> ConsensusProposalHash
Source§impl Ord for SignedBlock
impl Ord for SignedBlock
Source§impl PartialEq for SignedBlock
impl PartialEq for SignedBlock
Source§impl PartialOrd for SignedBlock
impl PartialOrd for SignedBlock
Source§impl Serialize for SignedBlock
impl Serialize for SignedBlock
impl Eq for SignedBlock
Auto Trait Implementations§
impl Freeze for SignedBlock
impl RefUnwindSafe for SignedBlock
impl Send for SignedBlock
impl Sync for SignedBlock
impl Unpin for SignedBlock
impl UnsafeUnpin for SignedBlock
impl UnwindSafe for SignedBlock
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.