pub struct ModelsCallbacks {
pub on_change: Box<dyn Fn(Option<Vec<String>>)>,
pub on_persist: Box<dyn Fn(Option<Vec<String>>)>,
pub on_cancel: Box<dyn Fn()>,
}Fields§
§on_change: Box<dyn Fn(Option<Vec<String>>)>Called whenever the enabled model set or order changes (session-only, no persist).
on_persist: Box<dyn Fn(Option<Vec<String>>)>Called when user wants to persist current selection to settings.
on_cancel: Box<dyn Fn()>Called when user cancels.
Auto Trait Implementations§
impl !RefUnwindSafe for ModelsCallbacks
impl !Send for ModelsCallbacks
impl !Sync for ModelsCallbacks
impl !UnwindSafe for ModelsCallbacks
impl Freeze for ModelsCallbacks
impl Unpin for ModelsCallbacks
impl UnsafeUnpin for ModelsCallbacks
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more