Struct bitcoin_foundblock::FoundBlock
source · pub struct FoundBlock { /* private fields */ }
Expand description
| Helper for findBlock to selectively return | pieces of block data. If block is found, data | will be returned by setting specified output | variables. If block is not found, output | variables will keep their previous values.
Implementations§
source§impl FoundBlock
impl FoundBlock
pub fn hash(&mut self, hash: &mut u256) -> &mut FoundBlock
pub fn height(&mut self, height: &mut i32) -> &mut FoundBlock
pub fn time(&mut self, time: &mut i64) -> &mut FoundBlock
pub fn max_time(&mut self, max_time: &mut i64) -> &mut FoundBlock
pub fn mtp_time(&mut self, mtp_time: &mut i64) -> &mut FoundBlock
sourcepub fn in_active_chain(&mut self, in_active_chain: &mut bool) -> &mut FoundBlock
pub fn in_active_chain(&mut self, in_active_chain: &mut bool) -> &mut FoundBlock
| Return whether block is in the active | (most-work) chain. |
sourcepub fn next_block(&mut self, next_block: &FoundBlock) -> &mut FoundBlock
pub fn next_block(&mut self, next_block: &FoundBlock) -> &mut FoundBlock
| Return next block in the active chain | if current block is in the active chain. |
sourcepub fn data(&mut self, data: &mut Block) -> &mut FoundBlock
pub fn data(&mut self, data: &mut Block) -> &mut FoundBlock
| Read block data from disk. If the block | exists but doesn’t have data (for example | due to pruning), the CBlock variable will | be set to null.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for FoundBlock
impl !Send for FoundBlock
impl !Sync for FoundBlock
impl Unpin for FoundBlock
impl !UnwindSafe for FoundBlock
Blanket Implementations§
§impl<T, U> CastInto<U> for Twhere
U: CastFrom<T>,
impl<T, U> CastInto<U> for Twhere U: CastFrom<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> StaticUpcast<T> for T
impl<T> StaticUpcast<T> for T
§unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
Convert type of a const pointer. Read more