pub struct TrackerConfig {
pub timeout: u64,
pub reorder_window: u8,
pub trust: TrustConfig,
pub max_transmitters: usize,
}Available on crate feature
std only.Expand description
Tracker settings.
Fields§
§timeout: u64Aircraft not heard for this long (in the caller’s time unit) are
removed by Tracker::expire.
reorder_window: u8Counter steps backwards up to this size are taken as reordering, not as a restart.
trust: TrustConfigTrust check settings. The trust checks need the caller’s time unit to be milliseconds.
max_transmitters: usizeMost transmitters kept at once (default 4096; each takes several
KB). When a new one arrives with the tracker full, aircraft past
timeout are dropped first, then the one heard least recently, so
a flood of frames from random addresses cannot grow memory without
bound.
Trait Implementations§
Source§impl Clone for TrackerConfig
impl Clone for TrackerConfig
impl Copy for TrackerConfig
Source§impl Debug for TrackerConfig
impl Debug for TrackerConfig
Auto Trait Implementations§
impl Forget for TrackerConfig
impl Freeze for TrackerConfig
impl Move for TrackerConfig
impl RefUnwindSafe for TrackerConfig
impl Send for TrackerConfig
impl Sync for TrackerConfig
impl Unpin for TrackerConfig
impl UnsafeUnpin for TrackerConfig
impl UnwindSafe for TrackerConfig
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