Skip to main content

AsyncInitableExt

Trait AsyncInitableExt 

Source
pub trait AsyncInitableExt: IsA<AsyncInitable> + '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>>>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§