Struct ckb_index::IndexDatabase [−][src]
pub struct IndexDatabase<'a> { /* fields omitted */ }
Implementations
pub fn from_db(
db: &'a DB,
cf: &'a ColumnFamily,
network: NetworkType,
genesis_info: GenesisInfo,
enable_explorer: bool
) -> Result<IndexDatabase<'a>, IndexError>
pub fn get_live_cells_by_lock<F: FnMut(usize, &LiveCellInfo) -> (bool, bool)>(
&self,
lock_hash: Byte32,
from_number: Option<u64>,
terminator: F
) -> Vec<LiveCellInfo>
pub fn get_live_cells_by_type<F: FnMut(usize, &LiveCellInfo) -> (bool, bool)>(
&self,
type_hash: Byte32,
from_number: Option<u64>,
terminator: F
) -> Vec<LiveCellInfo>
pub fn get_live_cells_by_code<F: FnMut(usize, &LiveCellInfo) -> (bool, bool)>(
&self,
code_hash: Byte32,
from_number: Option<u64>,
terminator: F
) -> Vec<LiveCellInfo>
pub fn get_live_cell_infos<F: FnMut(usize, &LiveCellInfo) -> (bool, bool)>(
&self,
key_prefix: Key,
key_start: Key,
terminator: F
) -> Vec<LiveCellInfo>
Auto Trait Implementations
impl<'a> RefUnwindSafe for IndexDatabase<'a>
impl<'a> !Send for IndexDatabase<'a>
impl<'a> !Sync for IndexDatabase<'a>
impl<'a> Unpin for IndexDatabase<'a>
impl<'a> UnwindSafe for IndexDatabase<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more