Struct gstreamer::SystemClock[]

pub struct SystemClock(_, _);

The GStreamer core provides a GstSystemClock based on the system time. Asynchronous callbacks are scheduled from an internal thread.

Clock implementors are encouraged to subclass this systemclock as it implements the async notification.

Subclasses can however override all of the important methods for sync and async notifications to implement their own callback methods or blocking wait operations.

Implements

SystemClockExt, ClockExt, GstObjectExt, glib::object::ObjectExt

Methods

impl SystemClock
[src]

Get a handle to the default system clock. The refcount of the clock will be increased so you need to unref the clock after usage.

Returns

the default clock.

MT safe.

Sets the default system clock that can be obtained with SystemClock::obtain.

This is mostly used for testing and debugging purposes when you want to have control over the time reported by the default system clock.

MT safe.

new_clock

a Clock

Trait Implementations

impl Clone for SystemClock

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Hash for SystemClock

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Ord for SystemClock

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl StaticType for SystemClock

Returns the type identifier of Self.

impl<T: IsA<Object>> PartialEq<T> for SystemClock

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for SystemClock

impl<T: IsA<Object>> PartialOrd<T> for SystemClock

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Debug for SystemClock

Formats the value using the given formatter. Read more

impl IsA<Clock> for SystemClock

impl IsA<Object> for SystemClock

impl IsA<Object> for SystemClock

impl Send for SystemClock
[src]

impl Sync for SystemClock
[src]