Struct taple_core::NodeSettings
source · pub struct NodeSettings {
pub key_derivator: KeyDerivator,
pub secret_key: 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
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§
source§impl Clone for NodeSettings
impl Clone for NodeSettings
source§fn clone(&self) -> NodeSettings
fn clone(&self) -> NodeSettings
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 NodeSettings
impl Debug for NodeSettings
source§impl<'de> Deserialize<'de> for NodeSettings
impl<'de> Deserialize<'de> for NodeSettings
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
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§
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