Struct gstreamer::SingleShotClockId
source · [−]pub struct SingleShotClockId(_);
Implementations
sourceimpl 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
sourceimpl Clone for SingleShotClockId
impl Clone for SingleShotClockId
sourcefn clone(&self) -> SingleShotClockId
fn clone(&self) -> SingleShotClockId
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SingleShotClockId
impl Debug for SingleShotClockId
sourceimpl Deref for SingleShotClockId
impl Deref for SingleShotClockId
sourceimpl From<SingleShotClockId> for ClockId
impl From<SingleShotClockId> for ClockId
sourcefn from(id: SingleShotClockId) -> ClockId
fn from(id: SingleShotClockId) -> ClockId
Converts to this type from the input type.
sourceimpl Hash for SingleShotClockId
impl Hash for SingleShotClockId
sourceimpl Ord for SingleShotClockId
impl Ord for SingleShotClockId
sourcefn cmp(&self, other: &SingleShotClockId) -> Ordering
fn cmp(&self, other: &SingleShotClockId) -> Ordering
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<SingleShotClockId> for SingleShotClockId
impl PartialEq<SingleShotClockId> for SingleShotClockId
sourcefn eq(&self, other: &SingleShotClockId) -> bool
fn eq(&self, other: &SingleShotClockId) -> bool
sourceimpl PartialOrd<SingleShotClockId> for SingleShotClockId
impl PartialOrd<SingleShotClockId> for SingleShotClockId
sourcefn partial_cmp(&self, other: &SingleShotClockId) -> Option<Ordering>
fn partial_cmp(&self, other: &SingleShotClockId) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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 moresourceimpl TryFrom<ClockId> for SingleShotClockId
impl TryFrom<ClockId> for SingleShotClockId
impl Eq for SingleShotClockId
impl StructuralEq for SingleShotClockId
impl StructuralPartialEq for SingleShotClockId
Auto Trait Implementations
impl RefUnwindSafe for SingleShotClockId
impl Send for SingleShotClockId
impl Sync for SingleShotClockId
impl Unpin for SingleShotClockId
impl UnwindSafe for SingleShotClockId
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more