pub struct SendBlocksProofV1(/* private fields */);
Implementations§
Source§impl SendBlocksProofV1
impl SendBlocksProofV1
pub const FIELD_COUNT: usize = 6usize
pub fn total_size(&self) -> usize
pub fn field_count(&self) -> usize
pub fn count_extra_fields(&self) -> usize
pub fn has_extra_fields(&self) -> bool
pub fn last_header(&self) -> VerifiableHeader
pub fn proof(&self) -> HeaderDigestVec
pub fn headers(&self) -> HeaderVec
pub fn missing_block_hashes(&self) -> Byte32Vec
pub fn blocks_uncles_hash(&self) -> Byte32Vec
pub fn blocks_extension(&self) -> BytesOptVec
pub fn as_reader<'r>(&'r self) -> SendBlocksProofV1Reader<'r>
Trait Implementations§
Source§impl Clone for SendBlocksProofV1
impl Clone for SendBlocksProofV1
Source§fn clone(&self) -> SendBlocksProofV1
fn clone(&self) -> SendBlocksProofV1
Returns a copy 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 SendBlocksProofV1
impl Debug for SendBlocksProofV1
Source§impl Default for SendBlocksProofV1
impl Default for SendBlocksProofV1
Source§fn default() -> SendBlocksProofV1
fn default() -> SendBlocksProofV1
Returns the “default value” for a type. Read more
Source§impl Display for SendBlocksProofV1
impl Display for SendBlocksProofV1
Source§impl Entity for SendBlocksProofV1
impl Entity for SendBlocksProofV1
const NAME: &'static str = "SendBlocksProofV1"
type Builder = SendBlocksProofV1Builder
fn new_unchecked(data: Bytes) -> SendBlocksProofV1
fn as_bytes(&self) -> Bytes
fn as_slice(&self) -> &[u8] ⓘ
fn from_slice(slice: &[u8]) -> Result<SendBlocksProofV1, VerificationError>
fn from_compatible_slice( slice: &[u8], ) -> Result<SendBlocksProofV1, VerificationError>
fn new_builder() -> <SendBlocksProofV1 as Entity>::Builder
fn as_builder(self) -> <SendBlocksProofV1 as Entity>::Builder
Source§impl From<SendBlocksProofV1> for LightClientMessageUnion
impl From<SendBlocksProofV1> for LightClientMessageUnion
Source§fn from(item: SendBlocksProofV1) -> LightClientMessageUnion
fn from(item: SendBlocksProofV1) -> LightClientMessageUnion
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for SendBlocksProofV1
impl RefUnwindSafe for SendBlocksProofV1
impl Send for SendBlocksProofV1
impl Sync for SendBlocksProofV1
impl Unpin for SendBlocksProofV1
impl UnwindSafe for SendBlocksProofV1
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)