Struct byztime::ConsumerContext [−][src]
Provides a read-only interface to a timedata file
Implementations
impl ConsumerContext
[src]
pub fn open(path: &Path) -> Result<ConsumerContext>
[src]
Open a timedata file for read-only access
Trait Implementations
impl Context for ConsumerContext
[src]
fn as_mut_ptr(&self) -> *mut byztime_ctx
[src]
fn close(self) -> Result<()>
[src]
fn offset(&self) -> Result<(Timestamp, Timestamp, Timestamp)>
[src]
fn global_time(&self) -> Result<(Timestamp, Timestamp, Timestamp)>
[src]
fn get_drift(&self) -> i64
[src]
fn set_drift(&self, drift_ppb: i64)
[src]
fn slew(
&self,
min_rate_ppb: i64,
max_rate_ppb: i64,
max_error: Option<Timestamp>
) -> Result<()>
[src]
&self,
min_rate_ppb: i64,
max_rate_ppb: i64,
max_error: Option<Timestamp>
) -> Result<()>
fn step(&self) -> Result<()>
[src]
impl Drop for ConsumerContext
[src]
impl Send for ConsumerContext
[src]
impl Sync for ConsumerContext
[src]
Auto Trait Implementations
impl RefUnwindSafe for ConsumerContext
impl Unpin for ConsumerContext
impl UnwindSafe for ConsumerContext
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,