pub struct BlockProofStuff { /* private fields */ }Expand description
Deserialized block proof.
Implementations§
Source§impl BlockProofStuff
impl BlockProofStuff
pub fn from_proof(proof: Box<BlockProof>) -> Self
pub fn deserialize(block_id: &BlockId, data: &[u8]) -> Result<Self>
pub fn with_archive_data(self, data: Vec<u8>) -> WithArchiveData<Self>
pub fn id(&self) -> &BlockId
pub fn proof(&self) -> &BlockProof
pub fn is_link(&self) -> bool
pub fn virtualize_block_root(&self) -> Result<&DynCell>
pub fn virtualize_block(&self) -> Result<(Block, HashBytes)>
pub fn check_with_prev_key_block_proof( &self, prev_key_block_proof: &BlockProofStuff, ) -> Result<()>
pub fn check_with_master_state( &self, master_state: &ShardStateStuff, ) -> Result<()>
pub fn check_proof_link(&self) -> Result<()>
pub fn pre_check_block_proof(&self) -> Result<(Block, BlockInfo)>
Trait Implementations§
Source§impl AsRef<BlockProof> for BlockProofStuff
impl AsRef<BlockProof> for BlockProofStuff
Source§fn as_ref(&self) -> &BlockProof
fn as_ref(&self) -> &BlockProof
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for BlockProofStuff
impl Clone for BlockProofStuff
Source§fn clone(&self) -> BlockProofStuff
fn clone(&self) -> BlockProofStuff
Returns a duplicate 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 RefCnt for BlockProofStuff
impl RefCnt for BlockProofStuff
Source§fn into_ptr(me: Self) -> *mut Self::Base
fn into_ptr(me: Self) -> *mut Self::Base
Converts the smart pointer into a raw pointer, without affecting the reference count. Read more
Source§fn as_ptr(me: &Self) -> *mut Self::Base
fn as_ptr(me: &Self) -> *mut Self::Base
Provides a view into the smart pointer as a raw pointer. Read more
Auto Trait Implementations§
impl Freeze for BlockProofStuff
impl !RefUnwindSafe for BlockProofStuff
impl Send for BlockProofStuff
impl Sync for BlockProofStuff
impl Unpin for BlockProofStuff
impl !UnwindSafe for BlockProofStuff
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more