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 NetTimeProvider
pub fn get_property_active(&self) -> bool
[src]
pub fn get_property_active(&self) -> bool
pub 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) -> i32
pub fn get_property_qos_dscp(&self) -> i32
[src]
pub fn get_property_qos_dscp(&self) -> i32
pub 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
) -> SignalHandlerId
pub 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
) -> SignalHandlerId
pub 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
) -> SignalHandlerId
pub 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
) -> SignalHandlerId
pub 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
) -> SignalHandlerId
impl NetTimeProvider
[src]
impl NetTimeProvider
pub 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
) -> NetTimeProvider
Allows 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 NetTimeProvider
fn clone(&self) -> NetTimeProvider
fn clone(&self) -> NetTimeProvider
Returns 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 NetTimeProvider
fn 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 NetTimeProvider
fn cmp(&self, other: &NetTimeProvider) -> Ordering
fn cmp(&self, other: &NetTimeProvider) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl StaticType for NetTimeProvider
impl StaticType for NetTimeProvider
fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of Self
.
impl<T: IsA<Object>> PartialEq<T> for NetTimeProvider
impl<T: IsA<Object>> PartialEq<T> for NetTimeProvider
fn eq(&self, other: &T) -> bool
fn eq(&self, other: &T) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Eq for NetTimeProvider
impl Eq for NetTimeProvider
impl<T: IsA<Object>> PartialOrd<T> for NetTimeProvider
impl<T: IsA<Object>> PartialOrd<T> for NetTimeProvider
fn 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) -> bool
1.0.0[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
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 more
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
This 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 NetTimeProvider
impl IsA<Object> for NetTimeProvider
impl IsA<Object> for NetTimeProvider
impl IsA<Object> for NetTimeProvider
impl IsA<Object> for NetTimeProvider
impl Send for NetTimeProvider
[src]
impl Send for NetTimeProvider
impl Sync for NetTimeProvider
[src]
impl Sync for NetTimeProvider