[][src]Struct gstreamer_check::harness::Ref

pub struct Ref<'a>(_, _);

Methods from Deref<Target = Harness>

pub fn buffers_in_queue(&self) -> u32[src]

The number of GstBuffers currently in the Harness sinkpad glib::AsyncQueue

MT safe.

Returns

a guint number of buffers in the queue

pub fn buffers_received(&self) -> u32[src]

The total number of GstBuffers that has arrived on the Harness sinkpad. This number includes buffers that have been dropped as well as buffers that have already been pulled out.

MT safe.

Returns

a guint number of buffers received

pub fn events_in_queue(&self) -> u32[src]

The number of GstEvents currently in the Harness sinkpad glib::AsyncQueue

MT safe.

Returns

a guint number of events in the queue

pub fn events_received(&self) -> u32[src]

The total number of GstEvents that has arrived on the Harness sinkpad This number includes events handled by the harness as well as events that have already been pulled out.

MT safe.

Returns

a guint number of events received

pub fn get_last_pushed_timestamp(&self) -> ClockTime[src]

Get the timestamp of the last gst::Buffer pushed on the Harness srcpad, typically with gst_harness_push or gst_harness_push_from_src.

MT safe.

Returns

a gst::ClockTime with the timestamp or GST_CLOCK_TIME_NONE if no gst::Buffer has been pushed on the Harness srcpad

pub fn get_testclock(&self) -> Option<TestClock>[src]

Get the TestClock. Useful if specific operations on the testclock is needed.

MT safe.

Returns

a TestClock, or None if the testclock is not present.

pub fn query_latency(&self) -> ClockTime[src]

Get the min latency reported by any harnessed gst::Element.

MT safe.

Returns

a gst::ClockTime with min latency

pub fn upstream_events_in_queue(&self) -> u32[src]

The number of GstEvents currently in the Harness srcpad glib::AsyncQueue

MT safe.

Returns

a guint number of events in the queue

pub fn upstream_events_received(&self) -> u32[src]

The total number of GstEvents that has arrived on the Harness srcpad This number includes events handled by the harness as well as events that have already been pulled out.

MT safe.

Returns

a guint number of events received

pub fn get_element(&self) -> Option<Element>[src]

pub fn get_sinkpad(&self) -> Option<Pad>[src]

pub fn get_srcpad(&self) -> Option<Pad>[src]

pub fn get_sink_harness(&self) -> Option<Ref>[src]

pub fn get_src_harness(&self) -> Option<Ref>[src]

Trait Implementations

impl<'a> Debug for Ref<'a>[src]

impl<'a> Deref for Ref<'a>[src]

type Target = Harness

The resulting type after dereferencing.

Auto Trait Implementations

impl<'a> RefUnwindSafe for Ref<'a>

impl<'a> Send for Ref<'a>

impl<'a> Sync for Ref<'a>

impl<'a> Unpin for Ref<'a>

impl<'a> UnwindSafe for Ref<'a>

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<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.