fuel_core::database::database_description

Trait DatabaseHeight

source
pub trait DatabaseHeight:
    PartialEq
    + Default
    + Debug
    + Copy
    + Send
    + Sync {
    // Required methods
    fn as_u64(&self) -> u64;
    fn advance_height(&self) -> Option<Self>;
    fn rollback_height(&self) -> Option<Self>;
}

Required Methods§

source

fn as_u64(&self) -> u64

source

fn advance_height(&self) -> Option<Self>

source

fn rollback_height(&self) -> Option<Self>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl DatabaseHeight for DaBlockHeight

source§

fn as_u64(&self) -> u64

source§

fn advance_height(&self) -> Option<Self>

source§

fn rollback_height(&self) -> Option<Self>

source§

impl DatabaseHeight for BlockHeight

source§

fn as_u64(&self) -> u64

source§

fn advance_height(&self) -> Option<Self>

source§

fn rollback_height(&self) -> Option<Self>

Implementors§