Trait wireplumber::core::ObjectExt

source ·
pub trait ObjectExt: IsA<Object> + Sealed + 'static {
    // Provided methods
    fn abort_activation(&self, msg: &str) { ... }
    fn activate<P: FnOnce(Result<(), Error>) + 'static>(
        &self,
        features: ObjectFeatures,
        cancellable: Option<&impl IsA<Cancellable>>,
        callback: P
    ) { ... }
    fn activate_future(
        &self,
        features: ObjectFeatures
    ) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>> { ... }
    fn activate_closure(
        &self,
        features: ObjectFeatures,
        cancellable: Option<&impl IsA<Cancellable>>,
        closure: Closure
    ) { ... }
    fn deactivate(&self, features: ObjectFeatures) { ... }
    fn active_features(&self) -> ObjectFeatures { ... }
    fn core(&self) -> Option<Core> { ... }
    fn supported_features(&self) -> ObjectFeatures { ... }
    fn update_features(
        &self,
        activated: ObjectFeatures,
        deactivated: ObjectFeatures
    ) { ... }
    fn connect_active_features_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId { ... }
    fn connect_supported_features_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId { ... }
}

Provided Methods§

source

fn abort_activation(&self, msg: &str)

Available on crate feature v0_4_6 only.
source

fn activate<P: FnOnce(Result<(), Error>) + 'static>( &self, features: ObjectFeatures, cancellable: Option<&impl IsA<Cancellable>>, callback: P )

source

fn activate_future( &self, features: ObjectFeatures ) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>

source

fn activate_closure( &self, features: ObjectFeatures, cancellable: Option<&impl IsA<Cancellable>>, closure: Closure )

source

fn deactivate(&self, features: ObjectFeatures)

source

fn active_features(&self) -> ObjectFeatures

source

fn core(&self) -> Option<Core>

source

fn supported_features(&self) -> ObjectFeatures

source

fn update_features( &self, activated: ObjectFeatures, deactivated: ObjectFeatures )

source

fn connect_active_features_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_supported_features_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<O: IsA<Object>> ObjectExt for O