Trait gstreamer_base::prelude::ClockExt [−][src]
pub trait ClockExt { 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 + Send + Sync + Fn(&Self, bool); fn connect_property_timeout_notify<F>(&self, f: F) -> SignalHandlerId
where
F: 'static + Send + Sync + Fn(&Self); fn connect_property_window_size_notify<F>(&self, f: F) -> SignalHandlerId
where
F: 'static + Send + Sync + Fn(&Self); fn connect_property_window_threshold_notify<F>(
&self,
f: F
) -> SignalHandlerId
where
F: 'static + Send + Sync + Fn(&Self); }
Required 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)>
&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
)
&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>>,
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 + Send + Sync + Fn(&Self, bool),
F: 'static + Send + Sync + Fn(&Self, bool),
fn connect_property_timeout_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Send + Sync + Fn(&Self),
F: 'static + Send + Sync + Fn(&Self),
fn connect_property_window_size_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Send + Sync + Fn(&Self),
F: 'static + Send + Sync + Fn(&Self),
fn connect_property_window_threshold_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Send + Sync + Fn(&Self),
F: 'static + Send + Sync + Fn(&Self),