Struct hyparview::NodeOptions[][src]

pub struct NodeOptions<R> {
    pub rng: R,
    pub max_active_view_size: u8,
    pub max_passive_view_size: u8,
    pub shuffle_active_view_size: u8,
    pub shuffle_passive_view_size: u8,
    pub active_random_walk_len: u8,
    pub passive_random_walk_len: u8,
}

Options for HyParView Node.

Fields

Random number generator.

The default random number generator is ThreadRng.

Maximum number of nodes in the active view.

Maximum number of nodes in the passive view.

Protocol parameter that is called ka in the paper.

Protocol parameter that is called kp in the paper.

Protocol parameter that is called ARWL in the paper.

This is the initial TTL value for ForwardJoin and Shuffle messages.

Protocol parameter that is called PRWL in the paper.

If TTL is equal to the value,

Methods

impl NodeOptions<ThreadRng>
[src]

Makes a new NodeOptions instance with the default settings.

impl<R: Rng> NodeOptions<R>
[src]

DEFAULT_MAX_ACTIVE_VIEW_SIZE: u8 = 4

The default value of max_active_view_size field.

DEFAULT_MAX_PASSIVE_VIEW_SIZE: u8 = 24

The default value of max_passive_view_size field.

DEFAULT_SHUFFLE_ACTIVE_VIEW_SIZE: u8 = 2

The default value of shuffle_active_view_size field.

DEFAULT_SHUFFLE_PASSIVE_VIEW_SIZE: u8 = 2

The default value of shuffle_passive_view_size field.

DEFAULT_ACTIVE_RANDOM_WALK_LEN: u8 = 5

The default value of active_random_walk_len field.

DEFAULT_PASSIVE_RANDOM_WALK_LEN: u8 = 2

The default value of passive_random_walk_len field.

Sets the random number generator to rng.

Trait Implementations

impl<R: Debug> Debug for NodeOptions<R>
[src]

Formats the value using the given formatter. Read more

impl<R: Clone> Clone for NodeOptions<R>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for NodeOptions<ThreadRng>
[src]

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

Auto Trait Implementations

impl<R> Send for NodeOptions<R> where
    R: Send

impl<R> Sync for NodeOptions<R> where
    R: Sync