Struct gstreamer_net::NetClientClock
source · pub struct NetClientClock(_, _);Implementations
sourceimpl NetClientClock
impl NetClientClock
pub fn get_property_address(&self) -> Option<String>
pub fn set_property_address(&self, address: Option<&str>)
pub fn get_property_base_time(&self) -> u64
pub fn get_property_bus(&self) -> Option<Bus>
pub fn set_property_bus(&self, bus: Option<&Bus>)
pub fn get_property_internal_clock(&self) -> Option<Clock>
pub fn get_property_minimum_update_interval(&self) -> u64
pub fn set_property_minimum_update_interval(&self, minimum_update_interval: u64)
pub fn get_property_port(&self) -> i32
pub fn set_property_port(&self, port: i32)
pub fn get_property_qos_dscp(&self) -> i32
pub fn set_property_qos_dscp(&self, qos_dscp: i32)
pub fn get_property_round_trip_limit(&self) -> u64
pub fn set_property_round_trip_limit(&self, round_trip_limit: u64)
pub fn connect_property_address_notify<F: Fn(&NetClientClock) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_property_base_time_notify<F: Fn(&NetClientClock) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_property_bus_notify<F: Fn(&NetClientClock) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_property_internal_clock_notify<F: Fn(&NetClientClock) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_property_minimum_update_interval_notify<F: Fn(&NetClientClock) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_property_port_notify<F: Fn(&NetClientClock) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_property_qos_dscp_notify<F: Fn(&NetClientClock) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_property_round_trip_limit_notify<F: Fn(&NetClientClock) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
Trait Implementations
sourceimpl Clone for NetClientClock
impl Clone for NetClientClock
sourcefn clone(&self) -> NetClientClock
fn clone(&self) -> NetClientClock
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for NetClientClock
impl Debug for NetClientClock
sourceimpl Hash for NetClientClock
impl Hash for NetClientClock
sourceimpl Ord for NetClientClock
impl Ord for NetClientClock
sourcefn cmp(&self, other: &NetClientClock) -> Ordering
fn cmp(&self, other: &NetClientClock) -> Ordering
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 NetClientClock
impl<T: IsA<Object>> PartialOrd<T> for NetClientClock
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 NetClientClock
impl StaticType for NetClientClock
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self.impl Eq for NetClientClock
impl IsA<Clock> for NetClientClock
impl IsA<NetClientClock> for NtpClock
impl IsA<Object> for NetClientClock
impl IsA<Object> for NetClientClock
impl Send for NetClientClock
impl Sync for NetClientClock
Auto Trait Implementations
impl RefUnwindSafe for NetClientClock
impl Unpin for NetClientClock
impl UnwindSafe for NetClientClock
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.