Struct iota_client::node_manager::builder::NodeManagerBuilder
source · [−]pub struct NodeManagerBuilder {
pub primary_node: Option<NodeDto>,
pub primary_pow_node: Option<NodeDto>,
pub nodes: HashSet<NodeDto>,
pub permanodes: Option<HashSet<NodeDto>>,
pub node_sync_enabled: bool,
pub node_sync_interval: Duration,
pub quorum: bool,
pub min_quorum_size: usize,
pub quorum_threshold: usize,
}Expand description
Node manager builder
Fields
primary_node: Option<NodeDto>Node which will be tried first for all requests
primary_pow_node: Option<NodeDto>Node which will be tried first when using remote PoW, even before the primary_node
nodes: HashSet<NodeDto>Nodes
permanodes: Option<HashSet<NodeDto>>Permanodes
node_sync_enabled: boolIf node syncing is enabled
node_sync_interval: DurationInterval in which nodes will be checked for their sync status and the [NetworkInfo] gets updated
quorum: boolIf node quorum is enabled. Will compare the responses from multiple nodes and only returns the response if
quorum_threshold% of the nodes return the same one
min_quorum_size: usizeMinimum amount of nodes required for request when quorum is enabled
quorum_threshold: usize% of nodes that have to return the same response so it gets accepted
Trait Implementations
sourceimpl Clone for NodeManagerBuilder
impl Clone for NodeManagerBuilder
sourcefn clone(&self) -> NodeManagerBuilder
fn clone(&self) -> NodeManagerBuilder
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 moresourceimpl Debug for NodeManagerBuilder
impl Debug for NodeManagerBuilder
sourceimpl Default for NodeManagerBuilder
impl Default for NodeManagerBuilder
sourceimpl<'de> Deserialize<'de> for NodeManagerBuilder
impl<'de> Deserialize<'de> for NodeManagerBuilder
sourcefn 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
sourceimpl PartialEq<NodeManagerBuilder> for NodeManagerBuilder
impl PartialEq<NodeManagerBuilder> for NodeManagerBuilder
sourcefn eq(&self, other: &NodeManagerBuilder) -> bool
fn eq(&self, other: &NodeManagerBuilder) -> bool
sourceimpl Serialize for NodeManagerBuilder
impl Serialize for NodeManagerBuilder
impl Eq for NodeManagerBuilder
impl StructuralEq for NodeManagerBuilder
impl StructuralPartialEq for NodeManagerBuilder
Auto Trait Implementations
impl RefUnwindSafe for NodeManagerBuilder
impl Send for NodeManagerBuilder
impl Sync for NodeManagerBuilder
impl Unpin for NodeManagerBuilder
impl UnwindSafe for NodeManagerBuilder
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
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.