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>
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 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 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl 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
Performs the conversion.
sourceimpl Hash for SingleShotClockId
impl Hash for SingleShotClockId
sourceimpl Ord for SingleShotClockId
impl Ord for SingleShotClockId
sourceimpl PartialEq<SingleShotClockId> for SingleShotClockId
impl PartialEq<SingleShotClockId> for SingleShotClockId
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &SingleShotClockId) -> bool
fn ne(&self, other: &SingleShotClockId) -> bool
This method tests for !=
.
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>
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 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 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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more