pub struct TargetOptions {
pub random_walk_percent: u8,
pub sparse_bucket_percent: u8,
pub neighbor_sender_id: bool,
}Expand description
Distribution used to generate find_node targets and sender IDs.
Fields§
§random_walk_percent: u8Percentage of targets that are fully random.
sparse_bucket_percent: u8Percentage of targets chosen from sparse routing buckets.
neighbor_sender_id: boolWhether outbound sender IDs borrow the target’s prefix.
Trait Implementations§
Source§impl Clone for TargetOptions
impl Clone for TargetOptions
Source§fn clone(&self) -> TargetOptions
fn clone(&self) -> TargetOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TargetOptions
impl Debug for TargetOptions
Auto Trait Implementations§
impl Freeze for TargetOptions
impl RefUnwindSafe for TargetOptions
impl Send for TargetOptions
impl Sync for TargetOptions
impl Unpin for TargetOptions
impl UnsafeUnpin for TargetOptions
impl UnwindSafe for TargetOptions
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