Struct gstreamer_net::NtpClock
source · pub struct NtpClock(_, _);Implementations
Trait Implementations
sourceimpl Ord for NtpClock
impl Ord for NtpClock
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<T: IsA<Object>> PartialOrd<T> for NtpClock
impl<T: IsA<Object>> PartialOrd<T> for NtpClock
sourcefn partial_cmp(&self, other: &T) -> Option<Ordering>
fn partial_cmp(&self, other: &T) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresourceimpl StaticType for NtpClock
impl StaticType for NtpClock
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self.impl Eq for NtpClock
impl IsA<Clock> for NtpClock
impl IsA<NetClientClock> for NtpClock
impl IsA<Object> for NtpClock
impl IsA<Object> for NtpClock
impl Send for NtpClock
impl Sync for NtpClock
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Cast for Twhere
T: IsA<Object>,
impl<T> Cast for Twhere
T: IsA<Object>,
sourcefn upcast<T>(self) -> Twhere
T: StaticType + UnsafeFrom<ObjectRef> + Wrapper,
Self: IsA<T>,
fn upcast<T>(self) -> Twhere
T: StaticType + UnsafeFrom<ObjectRef> + Wrapper,
Self: IsA<T>,
Upcasts an object to a superclass or interface
T. Read moresourcefn upcast_ref<T>(&self) -> &Twhere
T: StaticType + UnsafeFrom<ObjectRef> + Wrapper,
Self: IsA<T>,
fn upcast_ref<T>(&self) -> &Twhere
T: StaticType + UnsafeFrom<ObjectRef> + Wrapper,
Self: IsA<T>,
Upcasts an object to a reference of its superclass or interface
T. Read moresourcefn downcast<T>(self) -> Result<T, Self>where
Self: Sized + Downcast<T>,
fn downcast<T>(self) -> Result<T, Self>where
Self: Sized + Downcast<T>,
Tries to downcast to a subclass or interface implementor
T. Read moresourcefn downcast_ref<T>(&self) -> Option<&T>where
Self: Sized + Downcast<T>,
fn downcast_ref<T>(&self) -> Option<&T>where
Self: Sized + Downcast<T>,
Tries to downcast to a reference of its subclass or interface implementor
T. Read moresourcefn is<T>(&self) -> boolwhere
T: StaticType,
fn is<T>(&self) -> boolwhere
T: StaticType,
Returns
true if the object is an instance of (can be cast to) T.sourcefn dynamic_cast<T>(self) -> Result<T, Self>where
T: StaticType + UnsafeFrom<ObjectRef> + Wrapper,
fn dynamic_cast<T>(self) -> Result<T, Self>where
T: StaticType + UnsafeFrom<ObjectRef> + Wrapper,
Tries to cast to an object of type
T. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while downcast and upcast will do many checks at compile-time already. Read moresourcefn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: StaticType + UnsafeFrom<ObjectRef> + Wrapper,
fn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: StaticType + UnsafeFrom<ObjectRef> + Wrapper,
Tries to cast to reference to an object of type
T. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while downcast and upcast will do many checks at compile-time already. Read moresourceimpl<O> ClockExt for Owhere
O: IsA<Clock> + IsA<Object>,
impl<O> ClockExt for Owhere
O: IsA<Clock> + IsA<Object>,
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) -> SignalHandlerIdwhere
F: 'static + Fn(&O, bool) + Send + Sync,
fn connect_property_timeout_notify<F>(&self, f: F) -> SignalHandlerIdwhere
F: 'static + Fn(&O) + Send + Sync,
fn connect_property_window_size_notify<F>(&self, f: F) -> SignalHandlerIdwhere
F: 'static + Fn(&O) + Send + Sync,
fn connect_property_window_threshold_notify<F>(&self, f: F) -> SignalHandlerIdwhere
F: 'static + Fn(&O) + Send + Sync,
sourceimpl<O> ClockExtManual for Owhere
O: IsA<Clock> + IsA<Object>,
impl<O> ClockExtManual for Owhere
O: IsA<Clock> + IsA<Object>,
fn new_periodic_id(
&self,
start_time: ClockTime,
interval: ClockTime
) -> Option<ClockId>
fn periodic_id_reinit(
&self,
id: &ClockId,
start_time: ClockTime,
interval: ClockTime
) -> Result<(), BoolError>
fn new_single_shot_id(&self, time: ClockTime) -> Option<ClockId>
fn single_shot_id_reinit(
&self,
id: &ClockId,
time: ClockTime
) -> Result<(), BoolError>
sourceimpl<Super, Sub> Downcast<Sub> for Superwhere
Super: IsA<Super>,
Sub: IsA<Super>,
impl<Super, Sub> Downcast<Sub> for Superwhere
Super: IsA<Super>,
Sub: IsA<Super>,
sourcefn can_downcast(&self) -> bool
fn can_downcast(&self) -> bool
Checks if it’s possible to downcast to
T. Read moresourcefn downcast_ref(&self) -> Option<&Sub>
fn downcast_ref(&self) -> Option<&Sub>
Tries to downcast to
&T. Read moresourceunsafe fn downcast_unchecked(self) -> Sub
unsafe fn downcast_unchecked(self) -> Sub
Downcasts to
T unconditionally. Read moresourceunsafe fn downcast_ref_unchecked(&self) -> &Sub
unsafe fn downcast_ref_unchecked(&self) -> &Sub
Downcasts to
&T unconditionally. Read moresourceimpl<O> GObjectExtManualGst for Owhere
O: IsA<Object>,
impl<O> GObjectExtManualGst for Owhere
O: IsA<Object>,
fn set_property_from_str(&self, name: &str, value: &str)
sourceimpl<O> GstObjectExt for Owhere
O: IsA<Object> + IsA<Object>,
impl<O> GstObjectExt for Owhere
O: IsA<Object> + IsA<Object>,
fn default_error<'a, P>(&self, error: &Error, debug: P)where
P: Into<Option<&'a str>>,
fn get_control_rate(&self) -> ClockTime
fn get_name(&self) -> String
fn get_parent(&self) -> Option<Object>
fn get_path_string(&self) -> String
fn has_active_control_bindings(&self) -> bool
fn has_ancestor<P>(&self, ancestor: &P) -> boolwhere
P: IsA<Object>,
fn has_as_ancestor<P>(&self, ancestor: &P) -> boolwhere
P: IsA<Object>,
fn has_as_parent<P>(&self, parent: &P) -> boolwhere
P: IsA<Object>,
fn set_control_binding_disabled(&self, property_name: &str, disabled: bool)
fn set_control_bindings_disabled(&self, disabled: bool)
fn set_control_rate(&self, control_rate: ClockTime)
fn set_name(&self, name: &str) -> Result<(), BoolError>
fn set_parent<P>(&self, parent: &P) -> Result<(), BoolError>where
P: IsA<Object>,
fn suggest_next_sync(&self) -> ClockTime
fn sync_values(&self, timestamp: ClockTime) -> Result<(), BoolError>
fn unparent(&self)
fn connect_property_name_notify<F>(&self, f: F) -> SignalHandlerIdwhere
F: 'static + Fn(&O) + Send + Sync,
fn connect_property_parent_notify<F>(&self, f: F) -> SignalHandlerIdwhere
F: 'static + Fn(&O) + Send + Sync,
sourceimpl<T> ObjectExt for Twhere
T: IsA<Object> + SetValue,
impl<T> ObjectExt for Twhere
T: IsA<Object> + SetValue,
fn get_type(&self) -> Type
fn set_property<'a, N>(
&self,
property_name: N,
value: &dyn ToValue
) -> Result<(), BoolError>where
N: Into<&'a str>,
fn get_property<'a, N>(&self, property_name: N) -> Result<Value, BoolError>where
N: Into<&'a str>,
fn block_signal(&self, handler_id: &SignalHandlerId)
fn unblock_signal(&self, handler_id: &SignalHandlerId)
fn stop_signal_emission(&self, signal_name: &str)
fn disconnect(&self, handler_id: SignalHandlerId)
fn connect_notify<'a, P, F>(&self, name: P, f: F) -> SignalHandlerIdwhere
P: Into<Option<&'a str>>,
F: 'static + Fn(&T, &ParamSpec) + Send + Sync,
fn notify<'a, N>(&self, property_name: N)where
N: Into<&'a str>,
fn notify_by_pspec(&self, pspec: &ParamSpec)
fn has_property<'a, N>(
&self,
property_name: N,
type_: Option<Type>
) -> Result<(), BoolError>where
N: Into<&'a str>,
fn get_property_type<'a, N>(&self, property_name: N) -> Option<Type>where
N: Into<&'a str>,
fn find_property<'a, N>(&self, property_name: N) -> Option<ParamSpec>where
N: Into<&'a str>,
fn list_properties(&self) -> Vec<ParamSpec, Global>
fn connect<'a, N, F>(
&self,
signal_name: N,
after: bool,
callback: F
) -> Result<SignalHandlerId, BoolError>where
N: Into<&'a str>,
F: 'static + Fn(&[Value]) -> Option<Value> + Send + Sync,
fn emit<'a, N>(
&self,
signal_name: N,
args: &[&dyn ToValue]
) -> Result<Option<Value>, BoolError>where
N: Into<&'a str>,
fn downgrade(&self) -> WeakRef<T>
fn bind_property<'a, O, N, M>(
&'a self,
source_property: N,
target: &'a O,
target_property: M
) -> BindingBuilder<'a, T, O>where
O: IsA<Object>,
N: Into<&'a str>,
M: Into<&'a str>,
fn ref_count(&self) -> u32
sourceimpl<T> ToSendValue for Twhere
T: SetValue + Send + ToValue + ?Sized,
impl<T> ToSendValue for Twhere
T: SetValue + Send + ToValue + ?Sized,
sourcefn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue clone of self.