pub struct CrossClockMapping {
pub mapping_id: SemanticId,
pub source_origin: SemanticId,
pub source_restart: u64,
pub source_scale: u32,
pub target_origin: SemanticId,
pub target_restart: u64,
pub target_scale: u32,
pub source_validity: CalibrationValidityWindow,
pub offset_seconds_num: i128,
pub offset_seconds_den: i128,
pub mapping_time_uncertainty_seconds: f64,
}Expand description
Explicit cross-clock mapping between two distinct clock origins (source_origin -> target_origin)
over a half-open source validity interval [valid_from, valid_until).
Fields§
§mapping_id: SemanticId§source_origin: SemanticId§source_restart: u64§source_scale: u32§target_origin: SemanticId§target_restart: u64§target_scale: u32§source_validity: CalibrationValidityWindow§offset_seconds_num: i128§offset_seconds_den: i128§mapping_time_uncertainty_seconds: f64Implementations§
Source§impl CrossClockMapping
impl CrossClockMapping
pub fn validate(&self) -> Result<(), ClockDisciplineError>
Sourcepub fn map_instant(
&self,
source_instant: RationalInstant,
source_time_uncertainty_seconds: Option<f64>,
) -> Result<(RationalInstant, f64), ClockDisciplineError>
pub fn map_instant( &self, source_instant: RationalInstant, source_time_uncertainty_seconds: Option<f64>, ) -> Result<(RationalInstant, f64), ClockDisciplineError>
Map source_instant into the target clock domain, returning the mapped RationalInstant
and the propagated time uncertainty $u_t = u_{t,\text{source}} + u_{t,\text{mapping}}$.
Trait Implementations§
Source§impl Clone for CrossClockMapping
impl Clone for CrossClockMapping
impl Copy for CrossClockMapping
Source§impl Debug for CrossClockMapping
impl Debug for CrossClockMapping
Source§impl PartialEq for CrossClockMapping
impl PartialEq for CrossClockMapping
impl StructuralPartialEq for CrossClockMapping
Auto Trait Implementations§
impl Freeze for CrossClockMapping
impl RefUnwindSafe for CrossClockMapping
impl Send for CrossClockMapping
impl Sync for CrossClockMapping
impl Unpin for CrossClockMapping
impl UnsafeUnpin for CrossClockMapping
impl UnwindSafe for CrossClockMapping
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
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