[][src]Struct gstreamer_net::NtpClock

pub struct NtpClock(_, _);

Implements

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

Implementations

impl NtpClock[src]

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

Create a new NtpClock that will report the time provided by the NTPv4 server 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 NtpClock[src]

impl Debug for NtpClock[src]

impl Eq for NtpClock[src]

impl Hash for NtpClock[src]

impl IsA<Clock> for NtpClock[src]

impl IsA<NetClientClock> for NtpClock[src]

impl IsA<Object> for NtpClock[src]

impl Ord for NtpClock[src]

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

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

impl Send for NtpClock[src]

impl StaticType for NtpClock[src]

impl Sync for NtpClock[src]

Auto Trait Implementations

impl RefUnwindSafe for NtpClock

impl Unpin for NtpClock

impl UnwindSafe for NtpClock

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.