pub trait DriveCost {
// Required method
fn ephemeral_cost(&self, fee_version: &FeeVersion) -> Result<u64, Error>;
}Expand description
Drive cost trait
Required Methods§
Sourcefn ephemeral_cost(&self, fee_version: &FeeVersion) -> Result<u64, Error>
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
impl DriveCost for OperationCost
Source§fn ephemeral_cost(&self, fee_version: &FeeVersion) -> Result<Credits, Error>
fn ephemeral_cost(&self, fee_version: &FeeVersion) -> Result<Credits, Error>
Return the ephemeral cost from the operation