pub struct AuctionCosts {Show 17 fields
pub get_era_validators: u64,
pub read_seigniorage_recipients: u64,
pub add_bid: u64,
pub withdraw_bid: u64,
pub delegate: u64,
pub undelegate: u64,
pub run_auction: u64,
pub slash: u64,
pub distribute: u64,
pub withdraw_delegator_reward: u64,
pub withdraw_validator_reward: u64,
pub read_era_id: u64,
pub activate_bid: u64,
pub redelegate: u64,
pub change_bid_public_key: u64,
pub add_reservations: u64,
pub cancel_reservations: u64,
}std only.Expand description
Description of the costs of calling auction entrypoints.
Fields§
§get_era_validators: u64Cost of calling the get_era_validators entry point.
read_seigniorage_recipients: u64Cost of calling the read_seigniorage_recipients entry point.
add_bid: u64Cost of calling the add_bid entry point.
withdraw_bid: u64Cost of calling the withdraw_bid entry point.
delegate: u64Cost of calling the delegate entry point.
undelegate: u64Cost of calling the undelegate entry point.
run_auction: u64Cost of calling the run_auction entry point.
slash: u64Cost of calling the slash entry point.
distribute: u64Cost of calling the distribute entry point.
withdraw_delegator_reward: u64Cost of calling the withdraw_delegator_reward entry point.
withdraw_validator_reward: u64Cost of calling the withdraw_validator_reward entry point.
read_era_id: u64Cost of calling the read_era_id entry point.
activate_bid: u64Cost of calling the activate_bid entry point.
redelegate: u64Cost of calling the redelegate entry point.
change_bid_public_key: u64Cost of calling the change_bid_public_key entry point.
add_reservations: u64Cost of calling the add_reservations entry point.
cancel_reservations: u64Cost of calling the cancel_reservations entry point.
Trait Implementations§
Source§impl Clone for AuctionCosts
impl Clone for AuctionCosts
Source§fn clone(&self) -> AuctionCosts
fn clone(&self) -> AuctionCosts
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl DataSize for AuctionCosts
impl DataSize for AuctionCosts
Source§const IS_DYNAMIC: bool = false
const IS_DYNAMIC: bool = false
true, the type has a heap size that can vary at runtime, depending on the actual value.Source§const STATIC_HEAP_SIZE: usize = 0usize
const STATIC_HEAP_SIZE: usize = 0usize
IS_DYNAMIC is false, this is
the total amount of heap memory occupied by the value. Otherwise this is a lower bound.Source§fn estimate_heap_size(&self) -> usize
fn estimate_heap_size(&self) -> usize
Source§impl Debug for AuctionCosts
impl Debug for AuctionCosts
Source§impl Default for AuctionCosts
impl Default for AuctionCosts
Source§impl<'de> Deserialize<'de> for AuctionCosts
impl<'de> Deserialize<'de> for AuctionCosts
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Distribution<AuctionCosts> for Standard
Available on crate feature testing only.
impl Distribution<AuctionCosts> for Standard
testing only.Source§fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> AuctionCosts
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> AuctionCosts
T, using rng as the source of randomness.Source§fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T>
fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T>
T, using rng as
the source of randomness. Read moreSource§impl FromBytes for AuctionCosts
impl FromBytes for AuctionCosts
Source§impl PartialEq for AuctionCosts
impl PartialEq for AuctionCosts
Source§impl Serialize for AuctionCosts
impl Serialize for AuctionCosts
Source§impl ToBytes for AuctionCosts
impl ToBytes for AuctionCosts
Source§fn serialized_length(&self) -> usize
fn serialized_length(&self) -> usize
Vec<u8> which would be returned from a successful call to
to_bytes() or into_bytes(). The data is not actually serialized, so this call is
relatively cheap.impl Copy for AuctionCosts
impl Eq for AuctionCosts
impl StructuralPartialEq for AuctionCosts
Auto Trait Implementations§
impl Freeze for AuctionCosts
impl RefUnwindSafe for AuctionCosts
impl Send for AuctionCosts
impl Sync for AuctionCosts
impl Unpin for AuctionCosts
impl UnwindSafe for AuctionCosts
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more