[][src]Struct gstreamer_net::NetClientClock

pub struct 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

gst::ClockExt, gst::ObjectExt, glib::object::ObjectExt

Implementations

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]

pub fn connect_property_bus_notify<F: Fn(&NetClientClock) + Send + Sync + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

pub fn connect_property_internal_clock_notify<F: Fn(&NetClientClock) + Send + Sync + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

pub fn connect_property_minimum_update_interval_notify<F: Fn(&NetClientClock) + Send + Sync + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

pub fn connect_property_port_notify<F: Fn(&NetClientClock) + Send + Sync + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

pub fn connect_property_qos_dscp_notify<F: Fn(&NetClientClock) + Send + Sync + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

pub fn connect_property_round_trip_limit_notify<F: Fn(&NetClientClock) + Send + Sync + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

impl NetClientClock[src]

pub fn new(
    name: Option<&str>,
    remote_address: &str,
    remote_port: i32,
    base_time: ClockTime
) -> NetClientClock
[src]

Create a new NetClientClock 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[src]

impl Debug for NetClientClock[src]

impl Eq for NetClientClock[src]

impl Hash for NetClientClock[src]

impl IsA<Clock> for NetClientClock[src]

impl IsA<NetClientClock> for NtpClock[src]

impl IsA<Object> for NetClientClock[src]

impl Ord for NetClientClock[src]

impl<T: ObjectType> PartialEq<T> for NetClientClock[src]

impl<T: ObjectType> PartialOrd<T> for NetClientClock[src]

impl Send for NetClientClock[src]

impl StaticType for NetClientClock[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Super, Sub> CanDowncast<Sub> for Super where
    Sub: IsA<Super>,
    Super: IsA<Super>, 
[src]

impl<T> Cast for T where
    T: ObjectType
[src]

impl<O> ClockExt for O where
    O: IsA<Clock>, 
[src]

impl<O> ClockExtManual for O where
    O: IsA<Clock>, 
[src]

impl<T> From<T> for T[src]

impl<O> GObjectExtManualGst for O where
    O: IsA<Object>, 
[src]

impl<O> GstObjectExt for O where
    O: IsA<Object>, 
[src]

impl<O> GstObjectExtManual for O where
    O: IsA<Object>, 
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ObjectExt for T where
    T: ObjectType
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *const GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *const GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.