Struct diem_config::config::SafetyRulesTestConfig
source · pub struct SafetyRulesTestConfig {
pub author: PeerId,
pub consensus_key: Option<ConfigKey<Ed25519PrivateKey>>,
pub execution_key: Option<ConfigKey<Ed25519PrivateKey>>,
pub waypoint: Option<Waypoint>,
}
Fields§
§consensus_key: Option<ConfigKey<Ed25519PrivateKey>>
§execution_key: Option<ConfigKey<Ed25519PrivateKey>>
§waypoint: Option<Waypoint>
Implementations§
source§impl SafetyRulesTestConfig
impl SafetyRulesTestConfig
pub fn new(author: PeerId) -> Self
pub fn consensus_key(&mut self, key: Ed25519PrivateKey)
pub fn execution_key(&mut self, key: Ed25519PrivateKey)
pub fn random_consensus_key(&mut self, rng: &mut StdRng)
pub fn random_execution_key(&mut self, rng: &mut StdRng)
Trait Implementations§
source§impl Clone for SafetyRulesTestConfig
impl Clone for SafetyRulesTestConfig
source§fn clone(&self) -> SafetyRulesTestConfig
fn clone(&self) -> SafetyRulesTestConfig
Returns a copy of the value. Read more
1.0.0 · 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 SafetyRulesTestConfig
impl Debug for SafetyRulesTestConfig
source§impl<'de> Deserialize<'de> for SafetyRulesTestConfig
impl<'de> Deserialize<'de> for SafetyRulesTestConfig
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<SafetyRulesTestConfig> for SafetyRulesTestConfig
impl PartialEq<SafetyRulesTestConfig> for SafetyRulesTestConfig
source§fn eq(&self, other: &SafetyRulesTestConfig) -> bool
fn eq(&self, other: &SafetyRulesTestConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SafetyRulesTestConfig
impl Serialize for SafetyRulesTestConfig
impl StructuralPartialEq for SafetyRulesTestConfig
Auto Trait Implementations§
impl RefUnwindSafe for SafetyRulesTestConfig
impl Send for SafetyRulesTestConfig
impl Sync for SafetyRulesTestConfig
impl Unpin for SafetyRulesTestConfig
impl UnwindSafe for SafetyRulesTestConfig
Blanket Implementations§
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> PersistableConfig for Twhere
T: Serialize + DeserializeOwned + ?Sized,
impl<T> PersistableConfig for Twhere T: Serialize + DeserializeOwned + ?Sized,
source§impl<T> Serialize for Twhere
T: Serialize + ?Sized,
impl<T> Serialize for Twhere T: Serialize + ?Sized,
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>
§impl<T> TestOnlyHash for Twhere
T: Serialize + ?Sized,
impl<T> TestOnlyHash for Twhere T: Serialize + ?Sized,
§fn test_only_hash(&self) -> HashValue
fn test_only_hash(&self) -> HashValue
Generates a hash used only for tests.