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
Methods
impl NetClientClock[src]
impl NetClientClockpub fn get_property_address(&self) -> Option<String>[src]
pub fn get_property_address(&self) -> Option<String>pub fn set_property_address(&self, address: Option<&str>)[src]
pub fn set_property_address(&self, address: Option<&str>)pub fn get_property_base_time(&self) -> u64[src]
pub fn get_property_base_time(&self) -> u64pub fn get_property_bus(&self) -> Option<Bus>[src]
pub fn get_property_bus(&self) -> Option<Bus>pub fn set_property_bus(&self, bus: Option<&Bus>)[src]
pub fn set_property_bus(&self, bus: Option<&Bus>)pub fn get_property_internal_clock(&self) -> Option<Clock>[src]
pub fn get_property_internal_clock(&self) -> Option<Clock>pub fn get_property_minimum_update_interval(&self) -> u64[src]
pub fn get_property_minimum_update_interval(&self) -> u64pub fn set_property_minimum_update_interval(&self, minimum_update_interval: u64)[src]
pub fn set_property_minimum_update_interval(&self, minimum_update_interval: u64)pub fn get_property_port(&self) -> i32[src]
pub fn get_property_port(&self) -> i32pub fn set_property_port(&self, port: i32)[src]
pub fn set_property_port(&self, port: i32)pub fn get_property_qos_dscp(&self) -> i32[src]
pub fn get_property_qos_dscp(&self) -> i32pub fn set_property_qos_dscp(&self, qos_dscp: i32)[src]
pub fn set_property_qos_dscp(&self, qos_dscp: i32)pub fn get_property_round_trip_limit(&self) -> u64[src]
pub fn get_property_round_trip_limit(&self) -> u64pub fn set_property_round_trip_limit(&self, round_trip_limit: u64)[src]
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[src]
pub fn connect_property_address_notify<F: Fn(&NetClientClock) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerIdpub fn connect_property_base_time_notify<F: Fn(&NetClientClock) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId[src]
pub fn connect_property_base_time_notify<F: Fn(&NetClientClock) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerIdpub fn connect_property_bus_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
) -> SignalHandlerIdpub fn connect_property_internal_clock_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
) -> SignalHandlerIdpub fn connect_property_minimum_update_interval_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
) -> SignalHandlerIdpub fn connect_property_port_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
) -> SignalHandlerIdpub fn connect_property_qos_dscp_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
) -> SignalHandlerIdpub fn connect_property_round_trip_limit_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
) -> SignalHandlerIdimpl NetClientClock[src]
impl NetClientClockpub fn new<'a, P: Into<Option<&'a str>>>(
name: P,
remote_address: &str,
remote_port: i32,
base_time: ClockTime
) -> NetClientClock[src]
pub fn new<'a, P: Into<Option<&'a str>>>(
name: P,
remote_address: &str,
remote_port: i32,
base_time: ClockTime
) -> NetClientClockCreate 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 Clone for NetClientClockfn clone(&self) -> NetClientClock
fn clone(&self) -> NetClientClockReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Hash for NetClientClock
impl Hash for NetClientClockfn hash<__H: Hasher>(&self, state: &mut __H)
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl Ord for NetClientClock
impl Ord for NetClientClockfn cmp(&self, other: &NetClientClock) -> Ordering
fn cmp(&self, other: &NetClientClock) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl StaticType for NetClientClock
impl StaticType for NetClientClockfn static_type() -> Type
fn static_type() -> TypeReturns the type identifier of Self.
impl<T: IsA<Object>> PartialEq<T> for NetClientClock
impl<T: IsA<Object>> PartialEq<T> for NetClientClockfn eq(&self, other: &T) -> bool
fn eq(&self, other: &T) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Eq for NetClientClock
impl Eq for NetClientClockimpl<T: IsA<Object>> PartialOrd<T> for NetClientClock
impl<T: IsA<Object>> PartialOrd<T> for NetClientClockfn partial_cmp(&self, other: &T) -> Option<Ordering>
fn partial_cmp(&self, other: &T) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
#[must_use]
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
#[must_use]
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Debug for NetClientClock
impl Debug for NetClientClockimpl IsA<Clock> for NetClientClock
impl IsA<Clock> for NetClientClockimpl IsA<Object> for NetClientClock
impl IsA<Object> for NetClientClockimpl IsA<Object> for NetClientClock
impl IsA<Object> for NetClientClockimpl Send for NetClientClock[src]
impl Send for NetClientClockimpl Sync for NetClientClock[src]
impl Sync for NetClientClockimpl IsA<NetClientClock> for NtpClock
impl IsA<NetClientClock> for NtpClock