pub struct StalenessMetadata {
pub kind: DegradationKind,
pub requested_epoch_j2000_s: f64,
pub source_epoch_j2000_s: f64,
pub staleness_s: f64,
pub staleness_days: f64,
}Expand description
Structured description of the product staleness behind a selection result.
Attached to every IonexSelection / Sp3Selection; a degraded result is
never produced without it. Epoch fields are seconds since the J2000 epoch
(2000-01-01 12:00:00). staleness_s is requested - source and is never
negative. This is the public type the language bindings wrap (Python
dataclass, Elixir struct, C handle) and the broadcast-fallback path reads.
Fields§
§kind: DegradationKindWhich degradation path produced the result.
requested_epoch_j2000_s: f64The requested epoch, J2000 seconds. For a range request this is the latest (most-stale) epoch of the range.
source_epoch_j2000_s: f64The source product epoch the result is backed by, J2000 seconds. For
DegradationKind::Exact this equals the requested epoch; for a diurnal
shift it is the same time-of-day a whole number of days earlier; for
nearest-prior it is the source product’s last epoch.
staleness_s: f64Staleness requested - source, seconds. Zero for an exact result; never
negative.
staleness_days: f64Staleness in days (staleness_s / 86400). For a diurnal shift this is the
integer day offset applied.
Trait Implementations§
Source§impl Clone for StalenessMetadata
impl Clone for StalenessMetadata
Source§fn clone(&self) -> StalenessMetadata
fn clone(&self) -> StalenessMetadata
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for StalenessMetadata
Source§impl Debug for StalenessMetadata
impl Debug for StalenessMetadata
Source§impl PartialEq for StalenessMetadata
impl PartialEq for StalenessMetadata
Source§fn eq(&self, other: &StalenessMetadata) -> bool
fn eq(&self, other: &StalenessMetadata) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StalenessMetadata
Auto Trait Implementations§
impl Freeze for StalenessMetadata
impl RefUnwindSafe for StalenessMetadata
impl Send for StalenessMetadata
impl Sync for StalenessMetadata
impl Unpin for StalenessMetadata
impl UnsafeUnpin for StalenessMetadata
impl UnwindSafe for StalenessMetadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.