pub trait ClockExt:
IsA<Clock>
+ Sealed
+ 'static {
Show 25 methods
// Provided 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) -> Option<ClockTime> { ... }
fn calibration(&self) -> (ClockTime, ClockTime, ClockTime, ClockTime) { ... }
fn internal_time(&self) -> ClockTime { ... }
fn master(&self) -> Option<Clock> { ... }
fn resolution(&self) -> ClockTime { ... }
fn time(&self) -> Option<ClockTime> { ... }
fn timeout(&self) -> Option<ClockTime> { ... }
fn is_synced(&self) -> bool { ... }
fn set_calibration(
&self,
internal: ClockTime,
external: ClockTime,
rate_num: ClockTime,
rate_denom: ClockTime,
) { ... }
fn set_master(
&self,
master: Option<&impl IsA<Clock>>,
) -> Result<(), BoolError> { ... }
fn set_resolution(&self, resolution: ClockTime) -> ClockTime { ... }
fn set_synced(&self, synced: bool) { ... }
fn set_timeout(&self, timeout: impl Into<Option<ClockTime>>) { ... }
fn unadjust_unlocked(&self, external: ClockTime) -> Option<ClockTime> { ... }
fn wait_for_sync(
&self,
timeout: impl Into<Option<ClockTime>>,
) -> Result<(), BoolError> { ... }
fn window_size(&self) -> i32 { ... }
fn set_window_size(&self, window_size: i32) { ... }
fn window_threshold(&self) -> i32 { ... }
fn set_window_threshold(&self, window_threshold: i32) { ... }
fn connect_synced<F: Fn(&Self, bool) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_timeout_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_window_size_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_window_threshold_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
}
Provided 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) -> Option<ClockTime>
fn calibration(&self) -> (ClockTime, ClockTime, ClockTime, ClockTime)
fn internal_time(&self) -> ClockTime
fn master(&self) -> Option<Clock>
fn resolution(&self) -> ClockTime
fn time(&self) -> Option<ClockTime>
fn timeout(&self) -> Option<ClockTime>
fn is_synced(&self) -> bool
fn set_calibration( &self, internal: ClockTime, external: ClockTime, rate_num: ClockTime, rate_denom: ClockTime, )
fn set_master(&self, master: Option<&impl IsA<Clock>>) -> Result<(), BoolError>
fn set_resolution(&self, resolution: ClockTime) -> ClockTime
fn set_synced(&self, synced: bool)
fn set_timeout(&self, timeout: impl Into<Option<ClockTime>>)
fn unadjust_unlocked(&self, external: ClockTime) -> Option<ClockTime>
fn wait_for_sync( &self, timeout: impl Into<Option<ClockTime>>, ) -> Result<(), BoolError>
fn window_size(&self) -> i32
fn set_window_size(&self, window_size: i32)
fn window_threshold(&self) -> i32
fn set_window_threshold(&self, window_threshold: i32)
fn connect_synced<F: Fn(&Self, bool) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_timeout_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_window_size_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_window_threshold_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId
Object Safety§
This trait is not object safe.