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) -> Self
pub fn compact_target(self, v: Uint32) -> Self
pub fn timestamp(self, v: Uint64) -> Self
pub fn number(self, v: Uint64) -> Self
pub fn epoch(self, v: Uint64) -> Self
pub fn parent_hash(self, v: Byte32) -> Self
pub fn transactions_root(self, v: Byte32) -> Self
pub fn proposals_hash(self, v: Byte32) -> Self
pub fn extra_hash(self, v: Byte32) -> Self
pub fn dao(self, v: Byte32) -> Self
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