pub trait LoadableIconExt: 'static {
    // Required methods
    fn load(
        &self,
        size: i32,
        cancellable: Option<&impl IsA<Cancellable>>
    ) -> Result<(InputStream, GString), Error>;
    fn load_async<P: FnOnce(Result<(InputStream, GString), Error>) + 'static>(
        &self,
        size: i32,
        cancellable: Option<&impl IsA<Cancellable>>,
        callback: P
    );
    fn load_future(
        &self,
        size: i32
    ) -> Pin<Box_<dyn Future<Output = Result<(InputStream, GString), Error>> + 'static>>;
}

Required Methods§

source

fn load( &self, size: i32, cancellable: Option<&impl IsA<Cancellable>> ) -> Result<(InputStream, GString), Error>

source

fn load_async<P: FnOnce(Result<(InputStream, GString), Error>) + 'static>( &self, size: i32, cancellable: Option<&impl IsA<Cancellable>>, callback: P )

source

fn load_future( &self, size: i32 ) -> Pin<Box_<dyn Future<Output = Result<(InputStream, GString), Error>> + 'static>>

Implementors§