#[non_exhaustive]pub enum ResourceDim {
GpuSeconds,
GridCarbonGramsCo2,
PeerVerifierMillis,
CorpusBitsAdded,
KnowledgeSpillover,
FxVolatilityDelta,
AuctionDelay,
}Expand description
One axis of externality the auction internalizes. Each variant captures a measurable externality and an oracle that signs claims about it.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
GpuSeconds
GPU compute time consumed, in micro-seconds.
GridCarbonGramsCo2
Grid carbon intensity × electrical energy, in micro-grams CO₂-eq.
PeerVerifierMillis
Peer-verifier CPU / I/O time imposed on the witness federation when this call’s lineage edges get verified, in milliseconds.
CorpusBitsAdded
Bits added to the corpus when this call’s artifact is recorded.
KnowledgeSpillover
Negative externality (= positive spillover): knowledge produced and made available to other agents.
FxVolatilityDelta
FX volatility imposed on subsequent FX-denominated bids.
AuctionDelay
Auction-clearing delay imposed on downstream auctions, in milliseconds.
Trait Implementations§
Source§impl Clone for ResourceDim
impl Clone for ResourceDim
Source§fn clone(&self) -> ResourceDim
fn clone(&self) -> ResourceDim
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResourceDim
impl Debug for ResourceDim
Source§impl<'de> Deserialize<'de> for ResourceDim
impl<'de> Deserialize<'de> for ResourceDim
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ResourceDim, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ResourceDim, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for ResourceDim
impl Hash for ResourceDim
Source§impl Ord for ResourceDim
impl Ord for ResourceDim
Source§fn cmp(&self, other: &ResourceDim) -> Ordering
fn cmp(&self, other: &ResourceDim) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ResourceDim
impl PartialEq for ResourceDim
Source§fn eq(&self, other: &ResourceDim) -> bool
fn eq(&self, other: &ResourceDim) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ResourceDim
impl PartialOrd for ResourceDim
Source§impl Serialize for ResourceDim
impl Serialize for ResourceDim
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for ResourceDim
impl Eq for ResourceDim
impl StructuralPartialEq for ResourceDim
Auto Trait Implementations§
impl Freeze for ResourceDim
impl RefUnwindSafe for ResourceDim
impl Send for ResourceDim
impl Sync for ResourceDim
impl Unpin for ResourceDim
impl UnsafeUnpin for ResourceDim
impl UnwindSafe for ResourceDim
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
Mutably borrows from an owned value. Read more