#[non_exhaustive]pub enum ConfigParamName {
MaxSha256Buffers,
MaxCrossInvokeDepth,
MaxNewContractsPerTx,
MaxBytestringLen,
MaxContractSizeBytes,
MaxSavepointDepth,
MaxAuthTokenDepth,
MaxRv32CodeBytes,
MaxRv32MemoryBytes,
MaxTxGas,
}Expand description
The name a chain execution parameter carries outside its XDR encoding.
The protocol encodes each parameter as a ConfigParam union arm; every
surface that has to say which parameter it means spells the arm’s field
name instead. hog-devnode’s --network-config NAME=VALUE flag keys its
genesis overrides by these names and records them under the same names in
a data directory’s bootstrap metadata. This enum is the one place the
Rust side spells them, so a parameter cannot reach hog-devnode under a
name no parameter has.
Naming a parameter says nothing about which values it admits; that stays hog-devnode’s call, against the ceilings its build was compiled with.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
MaxSha256Buffers
MaxCrossInvokeDepth
MaxNewContractsPerTx
MaxBytestringLen
MaxContractSizeBytes
MaxSavepointDepth
MaxAuthTokenDepth
MaxRv32CodeBytes
MaxRv32MemoryBytes
MaxTxGas
Implementations§
Source§impl ConfigParamName
impl ConfigParamName
Sourcepub const ALL: &'static [ConfigParamName]
pub const ALL: &'static [ConfigParamName]
Every parameter this build names, in protocol id order.
Sourcepub fn stated_in(self, params: &NetworkConfigParams) -> Option<u64>
pub fn stated_in(self, params: &NetworkConfigParams) -> Option<u64>
The value params states for this parameter, None when unstated.
This is the binding between a name and the field it reads, so a parameter added to one has to be added to the other.
Sourcepub fn known_names() -> String
pub fn known_names() -> String
The names this build knows, comma-separated, for diagnostics.
Trait Implementations§
Source§impl Clone for ConfigParamName
impl Clone for ConfigParamName
Source§fn clone(&self) -> ConfigParamName
fn clone(&self) -> ConfigParamName
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ConfigParamName
Source§impl Debug for ConfigParamName
impl Debug for ConfigParamName
Source§impl Display for ConfigParamName
impl Display for ConfigParamName
impl Eq for ConfigParamName
Source§impl FromStr for ConfigParamName
impl FromStr for ConfigParamName
Source§type Err = UnknownConfigParamName
type Err = UnknownConfigParamName
Source§fn from_str(
name: &str,
) -> Result<ConfigParamName, <ConfigParamName as FromStr>::Err>
fn from_str( name: &str, ) -> Result<ConfigParamName, <ConfigParamName as FromStr>::Err>
s to return a value of this type. Read moreSource§impl Hash for ConfigParamName
impl Hash for ConfigParamName
Source§impl Ord for ConfigParamName
impl Ord for ConfigParamName
Source§fn cmp(&self, other: &ConfigParamName) -> Ordering
fn cmp(&self, other: &ConfigParamName) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ConfigParamName
impl PartialEq for ConfigParamName
Source§impl PartialOrd for ConfigParamName
impl PartialOrd for ConfigParamName
impl StructuralPartialEq for ConfigParamName
Auto Trait Implementations§
impl Freeze for ConfigParamName
impl RefUnwindSafe for ConfigParamName
impl Send for ConfigParamName
impl Sync for ConfigParamName
impl Unpin for ConfigParamName
impl UnsafeUnpin for ConfigParamName
impl UnwindSafe for ConfigParamName
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.