pub struct AsnPolicy {
pub min_unique_asns: usize,
pub max_peers_per_asn: usize,
pub rotation_interval_ms: u64,
}Expand description
Policy governing ASN diversity requirements.
Fields§
§min_unique_asns: usizeMinimum number of unique ASNs required for a healthy peer set.
max_peers_per_asn: usizeMaximum number of peers allowed from a single ASN.
rotation_interval_ms: u64Interval in milliseconds after which peers are considered for rotation.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AsnPolicy
impl RefUnwindSafe for AsnPolicy
impl Send for AsnPolicy
impl Sync for AsnPolicy
impl Unpin for AsnPolicy
impl UnsafeUnpin for AsnPolicy
impl UnwindSafe for AsnPolicy
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