Struct plumcast::NodeBuilder [−][src]
pub struct NodeBuilder { /* fields omitted */ }
The builder of Node
.
Methods
impl NodeBuilder
[src]
impl NodeBuilder
pub fn new() -> Self
[src]
pub fn new() -> Self
Makes a new NodeBuilder
instance with the default settings.
ⓘImportant traits for &'a mut Rpub fn logger(&mut self, logger: Logger) -> &mut Self
[src]
pub fn logger(&mut self, logger: Logger) -> &mut Self
Sets the logger used by the node.
The default value is Logger::root(Discard, o!())
.
ⓘImportant traits for &'a mut Rpub fn tick_interval(&mut self, interval: Duration) -> &mut Self
[src]
pub fn tick_interval(&mut self, interval: Duration) -> &mut Self
Sets the unit of the node local Clock
.
The default value is Duration::from_millis(100)
.
ⓘImportant traits for &'a mut Rpub fn hyparview_shuffle_interval_ticks(&mut self, ticks: u64) -> &mut Self
[src]
pub fn hyparview_shuffle_interval_ticks(&mut self, ticks: u64) -> &mut Self
Sets the execution interval of HyparviewNode::shuffle_passive_view()
method in ticks.
The default value is 601
.
ⓘImportant traits for &'a mut Rpub fn hyparview_sync_active_view_interval_ticks(
&mut self,
ticks: u64
) -> &mut Self
[src]
pub fn hyparview_sync_active_view_interval_ticks(
&mut self,
ticks: u64
) -> &mut Self
Sets the execution interval of HyparviewNode::shuffle_passive_view()
method in ticks.
The default value is 307
.
ⓘImportant traits for &'a mut Rpub fn hyparview_fill_active_view_interval_ticks(
&mut self,
ticks: u64
) -> &mut Self
[src]
pub fn hyparview_fill_active_view_interval_ticks(
&mut self,
ticks: u64
) -> &mut Self
Sets the execution interval of HyparviewNode::shuffle_passive_view()
method in ticks.
The default value is 101
.
ⓘImportant traits for &'a mut Rpub fn hyparview_options(&mut self, options: HyparviewNodeOptions) -> &mut Self
[src]
pub fn hyparview_options(&mut self, options: HyparviewNodeOptions) -> &mut Self
Sets the options for the underlying HyParView node.
The default value is HyparviewNodeOptions::default()
.
ⓘImportant traits for &'a mut Rpub fn plumtree_options(&mut self, options: PlumtreeNodeOptions) -> &mut Self
[src]
pub fn plumtree_options(&mut self, options: PlumtreeNodeOptions) -> &mut Self
Sets the options for the underlying Plumtree node.
The default value is PlumtreeNodeOptions::default()
.
ⓘImportant traits for &'a mut Rpub unsafe fn local_id(&mut self, local_id: LocalNodeId) -> &mut Self
[src]
pub unsafe fn local_id(&mut self, local_id: LocalNodeId) -> &mut Self
Sets the local identifier of the node.
pub fn finish<M: MessagePayload>(&self, service: ServiceHandle<M>) -> Node<M>
[src]
pub fn finish<M: MessagePayload>(&self, service: ServiceHandle<M>) -> Node<M>
Builds a Node
instance with the specified settings.
Trait Implementations
impl Debug for NodeBuilder
[src]
impl Debug for NodeBuilder
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 NodeBuilder
[src]
impl Clone for NodeBuilder
fn clone(&self) -> NodeBuilder
[src]
fn clone(&self) -> NodeBuilder
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)
Performs copy-assignment from source
. Read more
impl Default for NodeBuilder
[src]
impl Default for NodeBuilder
Auto Trait Implementations
impl Send for NodeBuilder
impl Send for NodeBuilder
impl Sync for NodeBuilder
impl Sync for NodeBuilder