Struct gstreamer::PeriodicClockId
source · pub struct PeriodicClockId(_);
Implementations§
source§impl PeriodicClockId
impl PeriodicClockId
pub fn interval(&self) -> ClockTime
pub fn compare_by_time(&self, other: &Self) -> Ordering
pub fn wait_async<F>(&self, func: F) -> Result<ClockSuccess, ClockError>where
F: Fn(&Clock, Option<ClockTime>, &ClockId) + Send + 'static,
pub fn wait_async_stream(
&self
) -> Result<Pin<Box<dyn Stream<Item = (Option<ClockTime>, ClockId)> + Unpin + Send + 'static>>, ClockError>
Methods from Deref<Target = ClockId>§
pub fn time(&self) -> ClockTime
pub fn unschedule(&self)
pub fn wait(&self) -> (Result<ClockSuccess, ClockError>, ClockTimeDiff)
pub fn compare_by_time(&self, other: &Self) -> Ordering
pub fn clock(&self) -> Option<Clock>
Available on crate feature
v1_16
only.pub fn uses_clock<P: IsA<Clock>>(&self, clock: &P) -> bool
Available on crate feature
v1_16
only.pub fn type_(&self) -> ClockEntryType
pub fn status(&self) -> &AtomicClockReturn
Trait Implementations§
source§impl Debug for PeriodicClockId
impl Debug for PeriodicClockId
source§impl Deref for PeriodicClockId
impl Deref for PeriodicClockId
source§impl From<PeriodicClockId> for ClockId
impl From<PeriodicClockId> for ClockId
source§fn from(id: PeriodicClockId) -> ClockId
fn from(id: PeriodicClockId) -> ClockId
Converts to this type from the input type.
source§impl Hash for PeriodicClockId
impl Hash for PeriodicClockId
source§impl Ord for PeriodicClockId
impl Ord for PeriodicClockId
source§fn cmp(&self, other: &PeriodicClockId) -> Ordering
fn cmp(&self, other: &PeriodicClockId) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<PeriodicClockId> for PeriodicClockId
impl PartialEq<PeriodicClockId> for PeriodicClockId
source§fn eq(&self, other: &PeriodicClockId) -> bool
fn eq(&self, other: &PeriodicClockId) -> bool
source§impl PartialOrd<PeriodicClockId> for PeriodicClockId
impl PartialOrd<PeriodicClockId> for PeriodicClockId
source§fn partial_cmp(&self, other: &PeriodicClockId) -> Option<Ordering>
fn partial_cmp(&self, other: &PeriodicClockId) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more