Skip to main content

DriveCost

Trait DriveCost 

Source
pub trait DriveCost {
    // Required method
    fn ephemeral_cost(&self, fee_version: &FeeVersion) -> Result<u64, Error>;
}
Expand description

Drive cost trait

Required Methods§

Source

fn ephemeral_cost(&self, fee_version: &FeeVersion) -> Result<u64, Error>

Ephemeral cost

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl DriveCost for OperationCost

Source§

fn ephemeral_cost(&self, fee_version: &FeeVersion) -> Result<Credits, Error>

Return the ephemeral cost from the operation

Implementors§