Trait sourceview5::prelude::AsyncInitableExt
source · pub trait AsyncInitableExt: IsA<AsyncInitable> + Sealed + 'static {
// Provided methods
unsafe fn init_async<P>(
&self,
io_priority: Priority,
cancellable: Option<&impl IsA<Cancellable>>,
callback: P,
)
where P: FnOnce(Result<(), Error>) + 'static { ... }
unsafe fn init_future(
&self,
io_priority: Priority,
) -> Pin<Box<dyn Future<Output = Result<(), Error>>>> { ... }
}
Provided Methods§
unsafe fn init_async<P>( &self, io_priority: Priority, cancellable: Option<&impl IsA<Cancellable>>, callback: P, )
unsafe fn init_future( &self, io_priority: Priority, ) -> Pin<Box<dyn Future<Output = Result<(), Error>>>>
Object Safety§
This trait is not object safe.