[]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

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

Methods

impl NetTimeProvider[src]

pub fn get_property_active(&self) -> bool[src]

pub fn set_property_active(&self, active: bool)[src]

pub fn get_property_address(&self) -> Option<GString>[src]

pub fn get_property_clock(&self) -> Option<Clock>[src]

pub fn get_property_port(&self) -> i32[src]

pub fn get_property_qos_dscp(&self) -> i32[src]

pub fn set_property_qos_dscp(&self, qos_dscp: i32)[src]

pub fn connect_property_active_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
[src]

impl NetTimeProvider[src]

pub fn new<P: IsA<Clock>>(
    clock: &P,
    address: Option<&str>,
    port: i32
) -> NetTimeProvider
[src]

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 Debug for NetTimeProvider

impl Eq for NetTimeProvider

impl Hash for NetTimeProvider

impl IsA<Object> for NetTimeProvider

impl Ord for NetTimeProvider

impl<T: ObjectType> PartialEq<T> for NetTimeProvider

impl<T: ObjectType> PartialOrd<T> for NetTimeProvider

impl Send for NetTimeProvider[src]

impl StaticType for NetTimeProvider

impl Sync for NetTimeProvider[src]

Auto Trait Implementations

impl RefUnwindSafe for NetTimeProvider

impl Unpin for NetTimeProvider

impl UnwindSafe for NetTimeProvider

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<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.