pub(crate) struct AprsStationCache {
pub callsign: String,
pub latitude: Option<f64>,
pub longitude: Option<f64>,
pub speed_knots: Option<u16>,
pub course_degrees: Option<u16>,
pub symbol_table: Option<char>,
pub symbol_code: Option<char>,
pub comment: Option<String>,
pub packet_count: u32,
pub last_path: Vec<String>,
pub last_heard: Instant,
}Expand description
Cached APRS station for the TUI display.
The library’s StationEntry uses Instant for timestamps which is
not useful for display. This caches the fields we need plus a
wall-clock time for “ago” display.
Fields§
§callsign: String§latitude: Option<f64>§longitude: Option<f64>§speed_knots: Option<u16>§course_degrees: Option<u16>§symbol_table: Option<char>§symbol_code: Option<char>§comment: Option<String>§packet_count: u32§last_path: Vec<String>§last_heard: InstantTrait Implementations§
Source§impl Clone for AprsStationCache
impl Clone for AprsStationCache
Source§fn clone(&self) -> AprsStationCache
fn clone(&self) -> AprsStationCache
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 moreAuto Trait Implementations§
impl Freeze for AprsStationCache
impl RefUnwindSafe for AprsStationCache
impl Send for AprsStationCache
impl Sync for AprsStationCache
impl Unpin for AprsStationCache
impl UnwindSafe for AprsStationCache
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more