Struct core::NodeSettings
[−]pub struct NodeSettings {
pub key_derivator: KeyDerivator,
pub secret_key: Option<String>,
pub seed: Option<String>,
pub digest_derivator: DigestDerivator,
pub replication_factor: f64,
pub timeout: u32,
/* private fields */
}
Expand description
General settings of a TAPLE node.
Fields
key_derivator: KeyDerivator
KeyDerivator to be used by the secret key.
secret_key: Option<String>
Secret key to be used by the node
seed: Option<String>
digest_derivator: DigestDerivator
DigestDerivator to be used for future event and subject identifiers
replication_factor: f64
Percentage of network nodes receiving protocol messages in one iteration
timeout: u32
Timeout to be used between protocol iterations
Trait Implementations
impl Clone for NodeSettings
impl Clone for NodeSettings
fn clone(&self) -> NodeSettings
fn clone(&self) -> NodeSettings
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Debug for NodeSettings
impl Debug for NodeSettings
impl<'de> Deserialize<'de> for NodeSettings
impl<'de> Deserialize<'de> for NodeSettings
fn deserialize<__D>(
__deserializer: __D
) -> Result<NodeSettings, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<NodeSettings, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for NodeSettings
impl Send for NodeSettings
impl Sync for NodeSettings
impl Unpin for NodeSettings
impl UnwindSafe for NodeSettings
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more