pub struct NodeOptions {
    pub ihave_timeout: Duration,
    pub optimization_threshold: u16,
}Expand description
Options for Plumtree Node.
Fields§
§ihave_timeout: DurationTimeout 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: u16Optimization threshold.
See “3.8. Optimization” of the paper for the description of the parameter.
The default value is 2.
Trait Implementations§
Source§impl Clone for NodeOptions
 
impl Clone for NodeOptions
Source§fn clone(&self) -> NodeOptions
 
fn clone(&self) -> NodeOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl Debug for NodeOptions
 
impl Debug for NodeOptions
Auto Trait Implementations§
impl Freeze for NodeOptions
impl RefUnwindSafe for NodeOptions
impl Send for NodeOptions
impl Sync for NodeOptions
impl Unpin for NodeOptions
impl UnwindSafe for NodeOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more