pub trait SaveDelegateExtManual {
    // Required method
    fn connect_save<F, R>(&self, f: F) -> SignalHandlerId
       where F: Fn(&Self, &Task<bool>) -> R + 'static,
             R: Future<Output = Result<(), Error>> + 'static;
}

Required Methods§

source

fn connect_save<F, R>(&self, f: F) -> SignalHandlerIdwhere F: Fn(&Self, &Task<bool>) -> R + 'static, R: Future<Output = Result<(), Error>> + 'static,

This signal can be used when subclassing SaveDelegate is not possible or cumbersome. The default implementation of PanelSaveDelegateClass.save_async() will emit this signal to allow the consumer to implement asynchronous save in a flexible manner.

The caller is expected to complete task with a boolean when the save operation has completed.

task

a gio::Task

Returns

true if the operation was handled.

Implementors§