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§
Sourcefn to_file_name(&self) -> String
fn to_file_name(&self) -> String
Convert to standardized file name
Sourcefn network_name(&self) -> &str
fn network_name(&self) -> &str
Get the network name
Sourcefn start_number(&self) -> u64
fn start_number(&self) -> u64
Get the starting number (block or slot)
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.