Struct gstreamer::PeriodicClockId
source · pub struct PeriodicClockId(ClockId);
Tuple Fields§
§0: ClockId
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>
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>
pub fn uses_clock<P: IsA<Clock>>(&self, clock: &P) -> bool
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 for PeriodicClockId
impl PartialEq for PeriodicClockId
source§impl PartialOrd for PeriodicClockId
impl PartialOrd for PeriodicClockId
source§impl TryFrom<ClockId> for PeriodicClockId
impl TryFrom<ClockId> for PeriodicClockId
impl Eq for PeriodicClockId
impl StructuralPartialEq for PeriodicClockId
Auto Trait Implementations§
impl Freeze for PeriodicClockId
impl RefUnwindSafe for PeriodicClockId
impl Send for PeriodicClockId
impl Sync for PeriodicClockId
impl Unpin for PeriodicClockId
impl UnwindSafe for PeriodicClockId
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