Trait wireplumber::session::SiAcquisitionExt2

source ·
pub trait SiAcquisitionExt2: 'static {
    // Required methods
    fn acquire<P: IsA<SiLink>, Q: IsA<SiLinkable>, R: FnOnce(Result<(), Error>) + Send + 'static>(
        &self,
        acquisitor: &P,
        item: &Q,
        callback: R
    );
    fn acquire_future<P: IsA<SiLink> + 'static, P_: AsRef<P>, Q: IsA<SiLinkable> + 'static, Q_: AsRef<Q>>(
        &self,
        acquisitor: P,
        item: Q
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'static>>;
}

Required Methods§

source

fn acquire<P: IsA<SiLink>, Q: IsA<SiLinkable>, R: FnOnce(Result<(), Error>) + Send + 'static>( &self, acquisitor: &P, item: &Q, callback: R )

source

fn acquire_future<P: IsA<SiLink> + 'static, P_: AsRef<P>, Q: IsA<SiLinkable> + 'static, Q_: AsRef<Q>>( &self, acquisitor: P, item: Q ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'static>>

Object Safety§

This trait is not object safe.

Implementors§