Struct fuchsia_zircon::ClockTransformation
source · pub struct ClockTransformation {
pub reference_offset: i64,
pub synthetic_offset: i64,
pub rate: zx_clock_rate_t,
}
Expand description
A one-dimensional affine transformation that maps points from the reference timeline to the clock timeline. See clock transformations.
Fields§
§reference_offset: i64
The offset on the reference timeline, measured in reference clock ticks.
synthetic_offset: i64
The offset on the clock timeline, measured in clock ticks (typically normalized to nanoseconds).
rate: zx_clock_rate_t
The ratio of the reference to clock rate.
Implementations§
source§impl ClockTransformation
impl ClockTransformation
Clock transformations can be applied to convert a time from a reference time to a synthetic time. The inverse transformation can be applied to convert a synthetic time back to the reference time.
Trait Implementations§
source§impl Clone for ClockTransformation
impl Clone for ClockTransformation
source§fn clone(&self) -> ClockTransformation
fn clone(&self) -> ClockTransformation
Returns a copy 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 moresource§impl Debug for ClockTransformation
impl Debug for ClockTransformation
source§impl From<zx_clock_transformation_t> for ClockTransformation
impl From<zx_clock_transformation_t> for ClockTransformation
source§fn from(ct: zx_clock_transformation_t) -> Self
fn from(ct: zx_clock_transformation_t) -> Self
Converts to this type from the input type.
source§impl PartialEq for ClockTransformation
impl PartialEq for ClockTransformation
source§fn eq(&self, other: &ClockTransformation) -> bool
fn eq(&self, other: &ClockTransformation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ClockTransformation
impl StructuralPartialEq for ClockTransformation
Auto Trait Implementations§
impl Freeze for ClockTransformation
impl RefUnwindSafe for ClockTransformation
impl Send for ClockTransformation
impl Sync for ClockTransformation
impl Unpin for ClockTransformation
impl UnwindSafe for ClockTransformation
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