Struct plumtree::NodeOptions [−][src]
Options for Plumtree Node.
Fields
ihave_timeout: Duration
Timeout duration of a IhaveMessage
.
When a node receives a IhaveMessage
,
the expiry time of the message is set after ihave_timeout
duration.
If it expires before the associated GossipMessage
is received,
the node will send GraftMessage
to the sender of the IhaveMessage
for retrieving the payload of the message.
The default value is Duration::from_millis(500)
.
optimization_threshold: u16
Optimization threshold.
See "3.8. Optimization" of the paper for the description of the parameter.
The default value is 2
.
Trait Implementations
impl Debug for NodeOptions
[src]
impl Debug for NodeOptions
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for NodeOptions
[src]
impl Clone for NodeOptions
fn clone(&self) -> NodeOptions
[src]
fn clone(&self) -> NodeOptions
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Default for NodeOptions
[src]
impl Default for NodeOptions
Auto Trait Implementations
impl Send for NodeOptions
impl Send for NodeOptions
impl Sync for NodeOptions
impl Sync for NodeOptions