pub struct BftBlockBuilder {
date: Option<BlockDate>,
chain_length: Option<ChainLength>,
parent_id: Option<Hash>,
contents_builder: ContentsBuilder,
}
Fields§
§date: Option<BlockDate>
§chain_length: Option<ChainLength>
§parent_id: Option<Hash>
§contents_builder: ContentsBuilder
Implementations§
source§impl BftBlockBuilder
impl BftBlockBuilder
pub fn new() -> Self
pub fn with_parent(&mut self, parent: &Header) -> &mut Self
pub fn with_parent_id(&mut self, parent_id: Hash) -> &mut Self
pub fn with_date(&mut self, date: BlockDate) -> &mut Self
pub fn with_chain_length(&mut self, chain_length: ChainLength) -> &mut Self
pub fn with_fragment(&mut self, fragment: Fragment) -> &mut Self
pub fn with_fragments(&mut self, fragments: Vec<Fragment>) -> &mut Self
pub fn build(&self, leader: &LeaderPair, time_era: &TimeEra) -> Block
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for BftBlockBuilder
impl Send for BftBlockBuilder
impl Sync for BftBlockBuilder
impl Unpin for BftBlockBuilder
impl UnwindSafe for BftBlockBuilder
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