Struct gstreamer_net::NetTimeProvider [−]
pub struct NetTimeProvider(_, _);
This object exposes the time of a gst::Clock on the network.
A NetTimeProvider is created with NetTimeProvider::new which
takes a gst::Clock, an address and a port number as arguments.
After creating the object, a client clock such as NetClientClock can
query the exposed clock over the network for its values.
The NetTimeProvider typically wraps the clock used by a gst::Pipeline.
Implements
Methods
impl NetTimeProvider[src]
impl NetTimeProviderpub fn get_property_active(&self) -> bool[src]
pub fn get_property_active(&self) -> boolpub fn set_property_active(&self, active: bool)[src]
pub fn set_property_active(&self, active: bool)pub fn get_property_address(&self) -> Option<String>[src]
pub fn get_property_address(&self) -> Option<String>pub fn get_property_clock(&self) -> Option<Clock>[src]
pub fn get_property_clock(&self) -> Option<Clock>pub fn get_property_port(&self) -> i32[src]
pub fn get_property_port(&self) -> i32pub 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 connect_property_active_notify<F: Fn(&NetTimeProvider) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId[src]
pub fn connect_property_active_notify<F: Fn(&NetTimeProvider) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerIdpub fn connect_property_address_notify<F: Fn(&NetTimeProvider) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId[src]
pub fn connect_property_address_notify<F: Fn(&NetTimeProvider) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerIdpub fn connect_property_clock_notify<F: Fn(&NetTimeProvider) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId[src]
pub fn connect_property_clock_notify<F: Fn(&NetTimeProvider) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerIdpub fn connect_property_port_notify<F: Fn(&NetTimeProvider) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId[src]
pub fn connect_property_port_notify<F: Fn(&NetTimeProvider) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerIdpub fn connect_property_qos_dscp_notify<F: Fn(&NetTimeProvider) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId[src]
pub fn connect_property_qos_dscp_notify<F: Fn(&NetTimeProvider) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerIdimpl NetTimeProvider[src]
impl NetTimeProviderpub fn new<'a, P: IsA<Clock>, Q: Into<Option<&'a str>>>(
clock: &P,
address: Q,
port: i32
) -> NetTimeProvider[src]
pub fn new<'a, P: IsA<Clock>, Q: Into<Option<&'a str>>>(
clock: &P,
address: Q,
port: i32
) -> NetTimeProviderAllows network clients to get the current time of clock.
clock
a gst::Clock to export over the network
address
an address to bind on as a dotted quad (xxx.xxx.xxx.xxx), IPv6 address, or NULL to bind to all addresses
port
a port to bind on, or 0 to let the kernel choose
Returns
the new NetTimeProvider, or NULL on error
Trait Implementations
impl Clone for NetTimeProvider
impl Clone for NetTimeProviderfn clone(&self) -> NetTimeProvider
fn clone(&self) -> NetTimeProviderReturns 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 NetTimeProvider
impl Hash for NetTimeProviderfn 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 NetTimeProvider
impl Ord for NetTimeProviderfn cmp(&self, other: &NetTimeProvider) -> Ordering
fn cmp(&self, other: &NetTimeProvider) -> 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 NetTimeProvider
impl StaticType for NetTimeProviderfn static_type() -> Type
fn static_type() -> TypeReturns the type identifier of Self.
impl<T: IsA<Object>> PartialEq<T> for NetTimeProvider
impl<T: IsA<Object>> PartialEq<T> for NetTimeProviderfn 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 NetTimeProvider
impl Eq for NetTimeProviderimpl<T: IsA<Object>> PartialOrd<T> for NetTimeProvider
impl<T: IsA<Object>> PartialOrd<T> for NetTimeProviderfn 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 NetTimeProvider
impl Debug for NetTimeProviderimpl IsA<Object> for NetTimeProvider
impl IsA<Object> for NetTimeProviderimpl IsA<Object> for NetTimeProvider
impl IsA<Object> for NetTimeProviderimpl Send for NetTimeProvider[src]
impl Send for NetTimeProviderimpl Sync for NetTimeProvider[src]
impl Sync for NetTimeProvider