pub struct SendBlocksProofBuilder { /* private fields */ }

Implementations§

source§

impl SendBlocksProofBuilder

source

pub const FIELD_COUNT: usize = 4usize

source

pub fn last_header(self, v: VerifiableHeader) -> Self

source

pub fn proof(self, v: HeaderDigestVec) -> Self

source

pub fn headers(self, v: HeaderVec) -> Self

source

pub fn missing_block_hashes(self, v: Byte32Vec) -> Self

Trait Implementations§

source§

impl Builder for SendBlocksProofBuilder

§

type Entity = SendBlocksProof

source§

const NAME: &'static str = "SendBlocksProofBuilder"

source§

fn expected_length(&self) -> usize

source§

fn write<W: Write>(&self, writer: &mut W) -> Result<()>

source§

fn build(&self) -> Self::Entity

source§

impl Debug for SendBlocksProofBuilder

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for SendBlocksProofBuilder

source§

fn default() -> SendBlocksProofBuilder

Returns the “default value” for a type. Read more
source§

impl ProverMessageBuilder for SendBlocksProofBuilder

§

type ProvedItems = HeaderVec

The type of the proved items.
§

type MissingItems = Byte32Vec

The type of the missing items.
source§

fn set_last_header(self, last_header: VerifiableHeader) -> Self

Set the verifiable header which includes the chain root.
source§

fn set_proof(self, proof: HeaderDigestVec) -> Self

Set the proof for all items which require verifying.
source§

fn set_proved_items(self, items: Self::ProvedItems) -> Self

Set the proved items.
source§

fn set_missing_items(self, items: Self::MissingItems) -> Self

Set the missing items.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V