pub struct BeaconConfig {
pub geohash_precision: usize,
pub track_all: bool,
pub max_distance_meters: Option<f64>,
pub broadcast_interval_secs: u64,
pub ttl_secs: u64,
pub cleanup_interval_secs: u64,
}Expand description
Beacon configuration
Fields§
§geohash_precision: usizeGeohash precision (5-9, default 7) 5 = ~4.9km cells, 6 = ~1.2km, 7 = ~153m, 8 = ~38m, 9 = ~4.8m
track_all: boolWhether to track all beacons regardless of distance
max_distance_meters: Option<f64>Maximum distance in meters to track (None = unlimited)
broadcast_interval_secs: u64Broadcast interval
ttl_secs: u64Beacon TTL (time to live)
cleanup_interval_secs: u64Cleanup interval for janitor
Implementations§
Source§impl BeaconConfig
impl BeaconConfig
Trait Implementations§
Source§impl Clone for BeaconConfig
impl Clone for BeaconConfig
Source§fn clone(&self) -> BeaconConfig
fn clone(&self) -> BeaconConfig
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 BeaconConfig
impl Debug for BeaconConfig
Source§impl Default for BeaconConfig
impl Default for BeaconConfig
Source§impl<'de> Deserialize<'de> for BeaconConfig
impl<'de> Deserialize<'de> for BeaconConfig
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 BeaconConfig
impl RefUnwindSafe for BeaconConfig
impl Send for BeaconConfig
impl Sync for BeaconConfig
impl Unpin for BeaconConfig
impl UnsafeUnpin for BeaconConfig
impl UnwindSafe for BeaconConfig
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