pub struct BlockHandle { /* private fields */ }Implementations§
Source§impl BlockHandle
impl BlockHandle
pub fn new( id: &BlockId, meta: BlockMeta, cache: Arc<FastDashMap<BlockId, WeakBlockHandle>>, ) -> Self
pub fn downgrade(&self) -> WeakBlockHandle
pub fn id(&self) -> &BlockId
pub fn is_masterchain(&self) -> bool
pub fn meta(&self) -> &BlockMeta
pub fn gen_utime(&self) -> u32
pub fn is_key_block(&self) -> bool
pub fn is_committed(&self) -> bool
pub fn is_persistent(&self) -> bool
pub fn is_zerostate(&self) -> bool
pub fn has_data(&self) -> bool
pub fn has_proof(&self) -> bool
pub fn has_queue_diff(&self) -> bool
pub fn has_all_block_parts(&self) -> bool
pub fn has_next1(&self) -> bool
pub fn has_state(&self) -> bool
pub fn has_persistent_shard_state(&self) -> bool
pub fn has_persistent_queue_state(&self) -> bool
pub fn ref_by_mc_seqno(&self) -> u32
Trait Implementations§
Source§impl Clone for BlockHandle
impl Clone for BlockHandle
Source§fn clone(&self) -> BlockHandle
fn clone(&self) -> BlockHandle
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 From<BlockHandle> for MaybeExistingHandle
impl From<BlockHandle> for MaybeExistingHandle
Source§fn from(handle: BlockHandle) -> Self
fn from(handle: BlockHandle) -> Self
Converts to this type from the input type.
Source§impl RefCnt for BlockHandle
impl RefCnt for BlockHandle
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 BlockHandle
impl !RefUnwindSafe for BlockHandle
impl Send for BlockHandle
impl Sync for BlockHandle
impl Unpin for BlockHandle
impl !UnwindSafe for BlockHandle
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