EraFileId

Trait EraFileId 

Source
pub trait EraFileId: Clone {
    // Required methods
    fn to_file_name(&self) -> String;
    fn network_name(&self) -> &str;
    fn start_number(&self) -> u64;
    fn count(&self) -> u32;
}
Expand description

Era file identifiers

Required Methods§

Source

fn to_file_name(&self) -> String

Convert to standardized file name

Source

fn network_name(&self) -> &str

Get the network name

Source

fn start_number(&self) -> u64

Get the starting number (block or slot)

Source

fn count(&self) -> u32

Get the count of items

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§