pub struct TargetingConfig {
pub max_generation_attempts: u32,
pub min_distance_from_rejected: u8,
pub distance_weight: f64,
pub target_weight: f64,
pub avoidance_weight: f64,
pub candidates_per_round: usize,
}Expand description
Configuration for identity targeting.
Fields§
§max_generation_attempts: u32Maximum attempts to generate a suitable identity (default: 100).
min_distance_from_rejected: u8Minimum XOR distance from rejected prefixes (bits, default: 4).
distance_weight: f64Weight for XOR distance in candidate scoring (default: 0.4).
target_weight: f64Weight for target region alignment in scoring (default: 0.3).
avoidance_weight: f64Weight for avoiding rejected regions in scoring (default: 0.3).
candidates_per_round: usizeNumber of candidates to generate per round (default: 10).
Trait Implementations§
Source§impl Clone for TargetingConfig
impl Clone for TargetingConfig
Source§fn clone(&self) -> TargetingConfig
fn clone(&self) -> TargetingConfig
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 TargetingConfig
impl Debug for TargetingConfig
Source§impl Default for TargetingConfig
impl Default for TargetingConfig
Source§impl<'de> Deserialize<'de> for TargetingConfig
impl<'de> Deserialize<'de> for TargetingConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TargetingConfig
impl RefUnwindSafe for TargetingConfig
impl Send for TargetingConfig
impl Sync for TargetingConfig
impl Unpin for TargetingConfig
impl UnwindSafe for TargetingConfig
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