Skip to main content

GstObjectExtManual

Trait GstObjectExtManual 

Source
pub trait GstObjectExtManual: IsA<Object> + 'static {
    // Provided methods
    fn connect_deep_notify<F: Fn(&Self, &Object, &ParamSpec) + Send + Sync + 'static>(
        &self,
        name: Option<&str>,
        f: F,
    ) -> SignalHandlerId { ... }
    fn set_object_flags(&self, flags: ObjectFlags) { ... }
    fn unset_object_flags(&self, flags: ObjectFlags) { ... }
    fn object_flags(&self) -> ObjectFlags { ... }
    fn g_value_array(
        &self,
        property_name: &str,
        timestamp: ClockTime,
        interval: ClockTime,
        values: &mut [Value],
    ) -> Result<(), BoolError> { ... }
    fn object_lock(&self) -> ObjectLockGuard<'_, Self> { ... }
    fn call_async<F>(&self, func: F)
       where F: FnOnce(&Self) + Send + 'static { ... }
    fn call_async_future<F, T>(
        &self,
        func: F,
    ) -> Pin<Box<dyn Future<Output = T> + Send + 'static>>
       where F: FnOnce(&Self) -> T + Send + 'static,
             T: Send + 'static { ... }
    unsafe fn set_parent(
        &self,
        parent: &impl IsA<Object>,
    ) -> Result<Self, BoolError> { ... }
    unsafe fn unset_parent(
        &self,
        parent: &impl IsA<Object>,
    ) -> Result<(), BoolError> { ... }
}

Provided Methods§

Source

fn connect_deep_notify<F: Fn(&Self, &Object, &ParamSpec) + Send + Sync + 'static>( &self, name: Option<&str>, f: F, ) -> SignalHandlerId

Source

fn set_object_flags(&self, flags: ObjectFlags)

Source

fn unset_object_flags(&self, flags: ObjectFlags)

Source

fn object_flags(&self) -> ObjectFlags

Source

fn g_value_array( &self, property_name: &str, timestamp: ClockTime, interval: ClockTime, values: &mut [Value], ) -> Result<(), BoolError>

Source

fn object_lock(&self) -> ObjectLockGuard<'_, Self>

Source

fn call_async<F>(&self, func: F)
where F: FnOnce(&Self) + Send + 'static,

Source

fn call_async_future<F, T>( &self, func: F, ) -> Pin<Box<dyn Future<Output = T> + Send + 'static>>
where F: FnOnce(&Self) -> T + Send + 'static, T: Send + 'static,

Source

unsafe fn set_parent( &self, parent: &impl IsA<Object>, ) -> Result<Self, BoolError>

Sets the parent of self to parent. If self already has a parent this will fail.

The returned reference to self on success must be kept alive until the parent is unset again. Also parent must be kept alive until child gets its parent unset, or in other words if child doesn’t get its parent unset until parent is disposed then during disposal this must happen. Not doing so causes dangling references and potential use-after-frees.

Source

unsafe fn unset_parent( &self, parent: &impl IsA<Object>, ) -> Result<(), BoolError>

Unsets the parent of self from parent. If self has no parent or a different parent than parent this will fail.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§