pub struct ModalResult {
pub id: ModalId,
pub data: Option<ModalResultData>,
pub focus_group_id: Option<u32>,
}Expand description
Result returned when a modal is closed.
Fields§
§id: ModalIdThe modal ID that was closed.
data: Option<ModalResultData>Optional result data from the modal.
focus_group_id: Option<u32>Focus group ID if one was associated (for calling FocusManager::pop_trap).
Trait Implementations§
Source§impl Clone for ModalResult
impl Clone for ModalResult
Source§fn clone(&self) -> ModalResult
fn clone(&self) -> ModalResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ModalResult
impl RefUnwindSafe for ModalResult
impl Send for ModalResult
impl Sync for ModalResult
impl Unpin for ModalResult
impl UnwindSafe for ModalResult
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