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§

source

unsafe fn init_async<P>( &self, io_priority: Priority, cancellable: Option<&impl IsA<Cancellable>>, callback: P )
where P: FnOnce(Result<(), Error>) + 'static,

source

unsafe fn init_future( &self, io_priority: Priority ) -> Pin<Box<dyn Future<Output = Result<(), Error>>>>

Object Safety§

This trait is not object safe.

Implementors§