pub struct Tracker { /* private fields */ }Expand description
Stores the set of currently tracked aircraft
Implementations§
Source§impl Tracker
impl Tracker
Sourcepub fn update_with_avr(&mut self, frame: &str) -> Result<(), ParserError>
pub fn update_with_avr(&mut self, frame: &str) -> Result<(), ParserError>
Update the tracker with a received ADSB message in AVR format
Sourcepub fn update_with_binary(&mut self, frame: &[u8]) -> Result<(), ParserError>
pub fn update_with_binary(&mut self, frame: &[u8]) -> Result<(), ParserError>
Update the tracker with a received ADSB message in binary format
Sourcepub fn get_current_aircraft(&self, interval: &Duration) -> Vec<&Aircraft>
pub fn get_current_aircraft(&self, interval: &Duration) -> Vec<&Aircraft>
Get a list of aircraft last seen in the given interval
pub fn get_all_aircraft(&self) -> Vec<&Aircraft>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Tracker
impl RefUnwindSafe for Tracker
impl Send for Tracker
impl Sync for Tracker
impl Unpin for Tracker
impl UnsafeUnpin for Tracker
impl UnwindSafe for Tracker
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