Trait libpanel::prelude::SaveDelegateExtManual
source · 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§
sourcefn connect_save<F, R>(&self, f: F) -> SignalHandlerId
fn connect_save<F, R>(&self, f: F) -> SignalHandlerId
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
§Returns
true
if the operation was handled.
Object Safety§
This trait is not object safe.