[][src]Struct hyparview::NodeOptions

pub struct NodeOptions {
    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

max_active_view_size: u8

Maximum number of nodes in the active view.

max_passive_view_size: u8

Maximum number of nodes in the passive view.

shuffle_active_view_size: u8

Protocol parameter that is called ka in the paper.

shuffle_passive_view_size: u8

Protocol parameter that is called kp in the paper.

active_random_walk_len: u8

Protocol parameter that is called ARWL in the paper.

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

passive_random_walk_len: u8

Protocol parameter that is called PRWL in the paper.

If TTL is equal to the value,

Methods

impl NodeOptions[src]

pub const DEFAULT_MAX_ACTIVE_VIEW_SIZE: u8[src]

The default value of max_active_view_size field.

pub const DEFAULT_MAX_PASSIVE_VIEW_SIZE: u8[src]

The default value of max_passive_view_size field.

pub const DEFAULT_SHUFFLE_ACTIVE_VIEW_SIZE: u8[src]

The default value of shuffle_active_view_size field.

pub const DEFAULT_SHUFFLE_PASSIVE_VIEW_SIZE: u8[src]

The default value of shuffle_passive_view_size field.

pub const DEFAULT_ACTIVE_RANDOM_WALK_LEN: u8[src]

The default value of active_random_walk_len field.

pub const DEFAULT_PASSIVE_RANDOM_WALK_LEN: u8[src]

The default value of passive_random_walk_len field.

Trait Implementations

impl Default for NodeOptions[src]

impl Clone for NodeOptions[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for NodeOptions[src]

Auto Trait Implementations

impl Send for NodeOptions

impl Sync for NodeOptions

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]