pub trait Provider {
type ExternalOrigin;
type NodeId;
type Balance;
type Funds;
type InternalError: Error;
type Error: From<Self::InternalError>;
type GasTree: LockableTree<ExternalOrigin = Self::ExternalOrigin, NodeId = Self::NodeId, Balance = Self::Balance, Funds = Self::Funds, InternalError = Self::InternalError, Error = Self::Error> + ReservableTree;
// Provided method
fn reset() { ... }
}
Expand description
Represents logic of centralized GasTree-algorithm.
Required Associated Types§
Sourcetype ExternalOrigin
type ExternalOrigin
Type representing the external owner of a value (gas) item.
type InternalError: Error
Sourcetype Error: From<Self::InternalError>
type Error: From<Self::InternalError>
Error type.
Sourcetype GasTree: LockableTree<ExternalOrigin = Self::ExternalOrigin, NodeId = Self::NodeId, Balance = Self::Balance, Funds = Self::Funds, InternalError = Self::InternalError, Error = Self::Error> + ReservableTree
type GasTree: LockableTree<ExternalOrigin = Self::ExternalOrigin, NodeId = Self::NodeId, Balance = Self::Balance, Funds = Self::Funds, InternalError = Self::InternalError, Error = Self::Error> + ReservableTree
A ledger to account for gas creation and consumption.
Provided Methods§
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.