pub struct Reload {
pub label: String,
pub reload_fn: fn() -> Vec<ConfigOptionValue>,
}
Expand description
Defines a reload operation for SelectorConfig
.
Fields§
§label: String
The label for the reload button displayed next to the selector config.
reload_fn: fn() -> Vec<ConfigOptionValue>
The reload function executed when the reload button is pressed. Note that this reload operation is run in a separate invocation of the program, meaning it should not rely on any in-memory state.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Reload
impl RefUnwindSafe for Reload
impl Send for Reload
impl Sync for Reload
impl Unpin for Reload
impl UnwindSafe for Reload
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