Struct gstreamer_check::harness::Ref
source · pub struct Ref<'a>(/* private fields */);
Methods from Deref<Target = Harness>§
sourcepub fn buffers_in_queue(&self) -> u32
pub fn buffers_in_queue(&self) -> u32
sourcepub fn buffers_received(&self) -> u32
pub fn buffers_received(&self) -> u32
sourcepub fn events_in_queue(&self) -> u32
pub fn events_in_queue(&self) -> u32
sourcepub fn events_received(&self) -> u32
pub fn events_received(&self) -> u32
sourcepub fn last_pushed_timestamp(&self) -> Option<ClockTime>
pub fn last_pushed_timestamp(&self) -> Option<ClockTime>
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 GstClockTime
with the timestamp or GST_CLOCK_TIME_NONE
if no
gst::Buffer
has been pushed on the Harness
srcpad
sourcepub fn query_latency(&self) -> Option<ClockTime>
pub fn query_latency(&self) -> Option<ClockTime>
Get the min latency reported by any harnessed gst::Element
.
MT safe.
§Returns
a GstClockTime
with min latency
sourcepub fn upstream_events_in_queue(&self) -> u32
pub fn upstream_events_in_queue(&self) -> u32
sourcepub fn upstream_events_received(&self) -> u32
pub fn upstream_events_received(&self) -> u32
pub fn element(&self) -> Option<Element>
pub fn sinkpad(&self) -> Option<Pad>
pub fn srcpad(&self) -> Option<Pad>
pub fn sink_harness(&self) -> Option<Ref<'_>>
pub fn src_harness(&self) -> Option<Ref<'_>>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Ref<'a>
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more