Trait gstreamer::auto::clock::ClockExt

source ·
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§

source

fn add_observation(&self, slave: ClockTime, master: ClockTime) -> Option<f64>

source

fn add_observation_unapplied( &self, slave: ClockTime, master: ClockTime, ) -> Option<(f64, ClockTime, ClockTime, ClockTime, ClockTime)>

source

fn adjust_unlocked(&self, internal: ClockTime) -> Option<ClockTime>

source

fn calibration(&self) -> (ClockTime, ClockTime, ClockTime, ClockTime)

source

fn internal_time(&self) -> ClockTime

source

fn master(&self) -> Option<Clock>

source

fn resolution(&self) -> ClockTime

source

fn time(&self) -> Option<ClockTime>

source

fn timeout(&self) -> Option<ClockTime>

source

fn is_synced(&self) -> bool

source

fn set_calibration( &self, internal: ClockTime, external: ClockTime, rate_num: ClockTime, rate_denom: ClockTime, )

source

fn set_master(&self, master: Option<&impl IsA<Clock>>) -> Result<(), BoolError>

source

fn set_resolution(&self, resolution: ClockTime) -> ClockTime

source

fn set_synced(&self, synced: bool)

source

fn set_timeout(&self, timeout: impl Into<Option<ClockTime>>)

source

fn unadjust_unlocked(&self, external: ClockTime) -> Option<ClockTime>

source

fn wait_for_sync( &self, timeout: impl Into<Option<ClockTime>>, ) -> Result<(), BoolError>

source

fn window_size(&self) -> i32

source

fn set_window_size(&self, window_size: i32)

source

fn window_threshold(&self) -> i32

source

fn set_window_threshold(&self, window_threshold: i32)

source

fn connect_synced<F: Fn(&Self, bool) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId

source

fn connect_timeout_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId

source

fn connect_window_size_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId

source

fn connect_window_threshold_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<O: IsA<Clock>> ClockExt for O