Struct gstreamer::SingleShotClockId
source · pub struct SingleShotClockId(_);
Implementations§
source§impl SingleShotClockId
impl SingleShotClockId
pub fn compare_by_time(&self, other: &Self) -> Ordering
pub fn wait_async<F>(&self, func: F) -> Result<ClockSuccess, ClockError>where
F: FnOnce(&Clock, Option<ClockTime>, &ClockId) + Send + 'static,
pub fn wait_async_future(
&self
) -> Result<Pin<Box<dyn Future<Output = Result<(Option<ClockTime>, ClockId), ClockError>> + 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 Clone for SingleShotClockId
impl Clone for SingleShotClockId
source§fn clone(&self) -> SingleShotClockId
fn clone(&self) -> SingleShotClockId
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SingleShotClockId
impl Debug for SingleShotClockId
source§impl Deref for SingleShotClockId
impl Deref for SingleShotClockId
source§impl From<SingleShotClockId> for ClockId
impl From<SingleShotClockId> for ClockId
source§fn from(id: SingleShotClockId) -> ClockId
fn from(id: SingleShotClockId) -> ClockId
Converts to this type from the input type.
source§impl Hash for SingleShotClockId
impl Hash for SingleShotClockId
source§impl Ord for SingleShotClockId
impl Ord for SingleShotClockId
source§fn cmp(&self, other: &SingleShotClockId) -> Ordering
fn cmp(&self, other: &SingleShotClockId) -> 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<SingleShotClockId> for SingleShotClockId
impl PartialEq<SingleShotClockId> for SingleShotClockId
source§fn eq(&self, other: &SingleShotClockId) -> bool
fn eq(&self, other: &SingleShotClockId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SingleShotClockId> for SingleShotClockId
impl PartialOrd<SingleShotClockId> for SingleShotClockId
source§fn partial_cmp(&self, other: &SingleShotClockId) -> Option<Ordering>
fn partial_cmp(&self, other: &SingleShotClockId) -> 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