Docs.rs
  • fuel-core-0.28.0
    • fuel-core 0.28.0
    • Docs.rs crate page
    • BUSL-1.1
    • Links
    • Homepage
    • Repository
    • crates.io
    • Source
    • Owners
    • fuel-service-user
    • Dependencies
      • anyhow ^1.0 normal
      • async-graphql ^4.0 normal
      • async-trait ^0.1 normal
      • axum ^0.5 normal
      • clap ^4.4 normal
      • derive_more ^0.99 normal
      • enum-iterator ^1.2 normal
      • fuel-core-chain-config ^0.28.0 normal
      • fuel-core-consensus-module ^0.28.0 normal
      • fuel-core-database ^0.28.0 normal
      • fuel-core-executor ^0.28.0 normal
      • fuel-core-importer ^0.28.0 normal
      • fuel-core-metrics ^0.28.0 normal
      • fuel-core-p2p ^0.28.0 normal optional
      • fuel-core-poa ^0.28.0 normal
      • fuel-core-producer ^0.28.0 normal
      • fuel-core-relayer ^0.28.0 normal optional
      • fuel-core-services ^0.28.0 normal
      • fuel-core-storage ^0.28.0 normal
      • fuel-core-sync ^0.28.0 normal optional
      • fuel-core-txpool ^0.28.0 normal
      • fuel-core-types ^0.28.0 normal
      • fuel-core-upgradable-executor ^0.28.0 normal
      • futures ^0.3 normal
      • hex ^0.4 normal
      • hyper ^0.14.26 normal
      • indicatif ^0.17 normal
      • itertools ^0.12 normal
      • num_cpus ^1.16.0 normal optional
      • rand ^0.8 normal
      • rocksdb ^0.21 normal optional
      • serde ^1.0 normal
      • serde_json ^1.0 normal
      • strum ^0.25 normal
      • strum_macros ^0.25 normal
      • tempfile ^3.4 normal optional
      • thiserror ^1.0 normal
      • tokio ^1.27 normal
      • tokio-rayon ^2.1.0 normal
      • tokio-stream ^0.1 normal
      • tokio-util ^0.7 normal
      • tower-http ^0.3 normal
      • tracing ^0.1 normal
      • uuid ^1.1 normal
      • assert_matches ^1.5 dev
      • fuel-core-executor ^0.28.0 dev
      • fuel-core-upgradable-executor ^0.28.0 dev
      • mockall ^0.11 dev
      • proptest ^1.1 dev
      • test-case ^3.3 dev
      • test-strategy ^0.3 dev
    • Versions
    • 15.04% of the crate is documented
  • Go to latest version
  • Platform
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation

fuel_core0.28.0

BlockQueryData

Required Methods

  • compressed_blocks
  • consensus
  • latest_block
  • latest_block_height

Implementors

In fuel_core::query

Trait fuel_core::query::BlockQueryData

source ·
pub trait BlockQueryData: Send + Sync + SimpleBlockData {
    // Required methods
    fn latest_block_height(&self) -> StorageResult<BlockHeight>;
    fn latest_block(&self) -> StorageResult<CompressedBlock>;
    fn compressed_blocks(
        &self,
        height: Option<BlockHeight>,
        direction: IterDirection,
    ) -> BoxedIter<'_, StorageResult<CompressedBlock>>;
    fn consensus(&self, id: &BlockHeight) -> StorageResult<Consensus>;
}

Required Methods§

source

fn latest_block_height(&self) -> StorageResult<BlockHeight>

source

fn latest_block(&self) -> StorageResult<CompressedBlock>

source

fn compressed_blocks( &self, height: Option<BlockHeight>, direction: IterDirection, ) -> BoxedIter<'_, StorageResult<CompressedBlock>>

source

fn consensus(&self, id: &BlockHeight) -> StorageResult<Consensus>

Implementors§

source§

impl<D> BlockQueryData for D
where D: OnChainDatabase + DatabaseBlocks + ?Sized,