Struct plumtree::NodeOptions[][src]

pub struct NodeOptions {
    pub ihave_timeout: Duration,
    pub optimization_threshold: u16,
}

Options for Plumtree Node.

Fields

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.

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]

Formats the value using the given formatter. Read more

impl Clone for NodeOptions
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for NodeOptions
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for NodeOptions

impl Sync for NodeOptions