pub struct RawHeaderBuilder { /* private fields */ }
Implementations§
Source§impl RawHeaderBuilder
impl RawHeaderBuilder
pub const TOTAL_SIZE: usize = 192usize
pub const FIELD_SIZES: [usize; 10] = _
pub const FIELD_COUNT: usize = 10usize
pub fn version(self, v: Uint32) -> RawHeaderBuilder
pub fn compact_target(self, v: Uint32) -> RawHeaderBuilder
pub fn timestamp(self, v: Uint64) -> RawHeaderBuilder
pub fn number(self, v: Uint64) -> RawHeaderBuilder
pub fn epoch(self, v: Uint64) -> RawHeaderBuilder
pub fn parent_hash(self, v: Byte32) -> RawHeaderBuilder
pub fn transactions_root(self, v: Byte32) -> RawHeaderBuilder
pub fn proposals_hash(self, v: Byte32) -> RawHeaderBuilder
pub fn extra_hash(self, v: Byte32) -> RawHeaderBuilder
pub fn dao(self, v: Byte32) -> RawHeaderBuilder
Trait Implementations§
Source§impl Builder for RawHeaderBuilder
impl Builder for RawHeaderBuilder
Source§impl Debug for RawHeaderBuilder
impl Debug for RawHeaderBuilder
Source§impl Default for RawHeaderBuilder
impl Default for RawHeaderBuilder
Source§fn default() -> RawHeaderBuilder
fn default() -> RawHeaderBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for RawHeaderBuilder
impl RefUnwindSafe for RawHeaderBuilder
impl Send for RawHeaderBuilder
impl Sync for RawHeaderBuilder
impl Unpin for RawHeaderBuilder
impl UnwindSafe for RawHeaderBuilder
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