pub trait ClockExt {
Show 25 methods
fn add_observation(&self, slave: ClockTime, master: ClockTime) -> Option<f64>;
fn add_observation_unapplied(
&self,
slave: ClockTime,
master: ClockTime
) -> Option<(f64, ClockTime, ClockTime, ClockTime, ClockTime)>;
fn adjust_unlocked(&self, internal: ClockTime) -> ClockTime;
fn get_calibration(&self) -> (ClockTime, ClockTime, ClockTime, ClockTime);
fn get_internal_time(&self) -> ClockTime;
fn get_master(&self) -> Option<Clock>;
fn get_resolution(&self) -> ClockTime;
fn get_time(&self) -> ClockTime;
fn get_timeout(&self) -> ClockTime;
fn is_synced(&self) -> bool;
fn set_calibration(
&self,
internal: ClockTime,
external: ClockTime,
rate_num: ClockTime,
rate_denom: ClockTime
);
fn set_master<'a, P, Q>(&self, master: Q) -> Result<(), BoolError>
where
P: 'a + IsA<Clock>,
Q: Into<Option<&'a P>>;
fn set_resolution(&self, resolution: ClockTime) -> ClockTime;
fn set_synced(&self, synced: bool);
fn set_timeout(&self, timeout: ClockTime);
fn unadjust_unlocked(&self, external: ClockTime) -> ClockTime;
fn wait_for_sync(&self, timeout: ClockTime) -> Result<(), BoolError>;
fn get_property_window_size(&self) -> i32;
fn set_property_window_size(&self, window_size: i32);
fn get_property_window_threshold(&self) -> i32;
fn set_property_window_threshold(&self, window_threshold: i32);
fn connect_synced<F>(&self, f: F) -> SignalHandlerId
where
F: 'static + Fn(&Self, bool) + Send + Sync;
fn connect_property_timeout_notify<F>(&self, f: F) -> SignalHandlerId
where
F: 'static + Fn(&Self) + Send + Sync;
fn connect_property_window_size_notify<F>(&self, f: F) -> SignalHandlerId
where
F: 'static + Fn(&Self) + Send + Sync;
fn connect_property_window_threshold_notify<F>(
&self,
f: F
) -> SignalHandlerId
where
F: 'static + Fn(&Self) + Send + Sync;
}