Struct gstreamer::PeriodicClockId
source · [−]pub struct PeriodicClockId(_);
Implementations
sourceimpl 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>
This is supported on crate feature
v1_16
only.pub fn uses_clock<P: IsA<Clock>>(&self, clock: &P) -> bool
This is supported on crate feature
v1_16
only.pub fn type_(&self) -> ClockEntryType
pub fn status(&self) -> &AtomicClockReturn
Trait Implementations
sourceimpl Debug for PeriodicClockId
impl Debug for PeriodicClockId
sourceimpl Deref for PeriodicClockId
impl Deref for PeriodicClockId
sourceimpl From<PeriodicClockId> for ClockId
impl From<PeriodicClockId> for ClockId
sourcefn from(id: PeriodicClockId) -> ClockId
fn from(id: PeriodicClockId) -> ClockId
Performs the conversion.
sourceimpl Hash for PeriodicClockId
impl Hash for PeriodicClockId
sourceimpl Ord for PeriodicClockId
impl Ord for PeriodicClockId
sourceimpl PartialEq<PeriodicClockId> for PeriodicClockId
impl PartialEq<PeriodicClockId> for PeriodicClockId
sourcefn eq(&self, other: &PeriodicClockId) -> bool
fn eq(&self, other: &PeriodicClockId) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PeriodicClockId) -> bool
fn ne(&self, other: &PeriodicClockId) -> bool
This method tests for !=
.
sourceimpl PartialOrd<PeriodicClockId> for PeriodicClockId
impl PartialOrd<PeriodicClockId> for PeriodicClockId
sourcefn partial_cmp(&self, other: &PeriodicClockId) -> Option<Ordering>
fn partial_cmp(&self, other: &PeriodicClockId) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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
sourceimpl TryFrom<ClockId> for PeriodicClockId
impl TryFrom<ClockId> for PeriodicClockId
impl Eq for PeriodicClockId
impl StructuralEq for PeriodicClockId
impl StructuralPartialEq for PeriodicClockId
Auto Trait Implementations
impl RefUnwindSafe for PeriodicClockId
impl Send for PeriodicClockId
impl Sync for PeriodicClockId
impl Unpin for PeriodicClockId
impl UnwindSafe for PeriodicClockId
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more