#[repr(transparent)]pub struct Promise { /* private fields */ }
Implementations§
source§impl Promise
impl Promise
sourcepub fn as_ptr(&self) -> *mut GstPromise
pub fn as_ptr(&self) -> *mut GstPromise
Return the inner pointer to the underlying C value.
source§impl Promise
impl Promise
pub fn new() -> Promise
pub fn with_change_func<F>(func: F) -> Promisewhere
F: FnOnce(Result<Option<&StructureRef>, PromiseError>) + Send + 'static,
pub fn new_future() -> (Self, PromiseFuture)
pub fn expire(&self)
pub fn get_reply(&self) -> Option<&StructureRef>
pub fn interrupt(&self)
pub fn reply(&self, s: Option<Structure>)
pub fn wait(&self) -> PromiseResult
Trait Implementations§
source§impl Ord for Promise
impl Ord for Promise
source§impl PartialOrd<Promise> for Promise
impl PartialOrd<Promise> for Promise
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 moresource§impl StaticType for Promise
impl StaticType for Promise
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Eq for Promise
impl Send for Promise
impl StructuralEq for Promise
impl StructuralPartialEq for Promise
impl Sync for Promise
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
source§impl<T> ToClosureReturnValue for Twhere
T: ToValue,
impl<T> ToClosureReturnValue for Twhere
T: ToValue,
fn to_closure_return_value(&self) -> Option<Value>
source§impl<T> ToSendValue for Twhere
T: Send + ToValue + ?Sized,
impl<T> ToSendValue for Twhere
T: Send + ToValue + ?Sized,
source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.