[−]Struct gstreamer_net::NetClientClock
NetClientClock
implements a custom gst::Clock
that synchronizes its time
to a remote time provider such as NetTimeProvider
. NtpClock
implements a gst::Clock
that synchronizes its time to a remote NTPv4 server.
A new clock is created with NetClientClock::new
or
NtpClock::new
, which takes the address and port of the remote time
provider along with a name and an initial time.
This clock will poll the time provider and will update its calibration parameters based on the local and remote observations.
The "round-trip" property limits the maximum round trip packets can take.
Various parameters of the clock can be configured with the parent gst::Clock
"timeout", "window-size" and "window-threshold" object properties.
A NetClientClock
and NtpClock
is typically set on a gst::Pipeline
with
gst::Pipeline::use_clock
.
If you set a gst::Bus
on the clock via the "bus" object property, it will
send gst::MessageType::Element
messages with an attached gst::Structure
containing
statistics about clock accuracy and network traffic.
Implements
Methods
impl NetClientClock
[src][−]
pub fn get_property_address(&self) -> Option<GString>
[src]
pub fn set_property_address(&self, address: Option<&str>)
[src]
pub fn get_property_base_time(&self) -> u64
[src]
pub fn get_property_bus(&self) -> Option<Bus>
[src]
pub fn set_property_bus<P: IsA<Bus> + SetValueOptional>(&self, bus: Option<&P>)
[src]
pub fn get_property_internal_clock(&self) -> Option<Clock>
[src]
pub fn get_property_minimum_update_interval(&self) -> u64
[src]
pub fn set_property_minimum_update_interval(&self, minimum_update_interval: u64)
[src]
pub fn get_property_port(&self) -> i32
[src]
pub fn set_property_port(&self, port: i32)
[src]
pub fn get_property_qos_dscp(&self) -> i32
[src]
pub fn set_property_qos_dscp(&self, qos_dscp: i32)
[src]
pub fn get_property_round_trip_limit(&self) -> u64
[src]
pub fn set_property_round_trip_limit(&self, round_trip_limit: u64)
[src]
pub fn connect_property_address_notify<F: Fn(&NetClientClock) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
pub fn connect_property_bus_notify<F: Fn(&NetClientClock) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
pub fn connect_property_internal_clock_notify<F: Fn(&NetClientClock) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
pub fn connect_property_minimum_update_interval_notify<F: Fn(&NetClientClock) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
pub fn connect_property_port_notify<F: Fn(&NetClientClock) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
pub fn connect_property_qos_dscp_notify<F: Fn(&NetClientClock) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
pub fn connect_property_round_trip_limit_notify<F: Fn(&NetClientClock) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
impl NetClientClock
[src][−]
pub fn new(
name: Option<&str>,
remote_address: &str,
remote_port: i32,
base_time: ClockTime
) -> NetClientClock
[src][−]
name: Option<&str>,
remote_address: &str,
remote_port: i32,
base_time: ClockTime
) -> NetClientClock
Create a new GstNetClientInternalClock
that will report the time
provided by the NetTimeProvider
on remote_address
and
remote_port
.
name
a name for the clock
remote_address
the address or hostname of the remote clock provider
remote_port
the port of the remote clock provider
base_time
initial time of the clock
Returns
a new gst::Clock
that receives a time from the remote
clock.
Trait Implementations
impl Clone for NetClientClock
[+]
impl Debug for NetClientClock
[+]
impl Eq for NetClientClock
impl Hash for NetClientClock
[+]
impl IsA<Clock> for NetClientClock
impl IsA<NetClientClock> for NtpClock
impl IsA<Object> for NetClientClock
impl Ord for NetClientClock
[+]
impl<T: ObjectType> PartialEq<T> for NetClientClock
[+]
impl<T: ObjectType> PartialOrd<T> for NetClientClock
[+]
impl Send for NetClientClock
[src]
impl StaticType for NetClientClock
[+]
impl Sync for NetClientClock
[src]
Auto Trait Implementations
impl RefUnwindSafe for NetClientClock
impl Unpin for NetClientClock
impl UnwindSafe for NetClientClock
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<Super, Sub> CanDowncast<Sub> for Super where
Sub: IsA<Super>,
Super: IsA<Super>,
[src]
Sub: IsA<Super>,
Super: IsA<Super>,
impl<T> Cast for T where
T: ObjectType,
[src][+]
T: ObjectType,
impl<O> ClockExt for O where
O: IsA<Clock>,
[src][+]
O: IsA<Clock>,
impl<O> ClockExtManual for O where
O: IsA<Clock>,
[src][+]
O: IsA<Clock>,
impl<T> From<T> for T
[src][+]
impl<O> GObjectExtManualGst for O where
O: IsA<Object>,
[src][+]
O: IsA<Object>,
impl<O> GstObjectExt for O where
O: IsA<Object>,
[src][+]
O: IsA<Object>,
impl<O> GstObjectExtManual for O where
O: IsA<Object>,
[src][+]
O: IsA<Object>,
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ObjectExt for T where
T: ObjectType,
[src][+]
T: ObjectType,
impl<'a, T> ToGlibContainerFromSlice<'a, *const GList> for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
[src][+]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
impl<'a, T> ToGlibContainerFromSlice<'a, *const GPtrArray> for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
[src][+]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
impl<'a, T> ToGlibContainerFromSlice<'a, *mut GArray> for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
[src][+]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
[src][+]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
impl<'a, T> ToGlibContainerFromSlice<'a, *mut GPtrArray> for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
[src][+]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T> ToSendValue for T where
T: ToValue + SetValue + Send + ?Sized,
[src][+]
T: ToValue + SetValue + Send + ?Sized,
impl<T> ToValue for T where
T: SetValue + ?Sized,
[src][+]
T: SetValue + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,