#[non_exhaustive]pub enum TabAction<I: ApplicationInfo> {
Close(TabTarget, CloseFlags),
Extract(FocusChange, MoveDir1D),
Focus(FocusChange),
Move(FocusChange),
Open(OpenTarget<I::WindowId>, FocusChange),
}Expand description
Actions for manipulating application tabs.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Close(TabTarget, CloseFlags)
Close the TabTarget tabs with CloseFlags options.
Extract(FocusChange, MoveDir1D)
Extract the currently focused window from the currently focused tab, and place it in a new tab.
If there is only one window in the current tab, then this does nothing.
The new tab will be placed on MoveDir1D side of the tab targeted by FocusChange. If FocusChange doesn’t resolve to a valid tab, then the new tab is placed after the currently focused tab.
Focus(FocusChange)
Change the current focus to the tab targeted by FocusChange.
Move(FocusChange)
Move the currently focused tab to the position targeted by FocusChange.
Open(OpenTarget<I::WindowId>, FocusChange)
Open a new tab after the tab targeted by FocusChange that displays the requested content.
Trait Implementations§
impl<I: Eq + ApplicationInfo> Eq for TabAction<I>
impl<I: ApplicationInfo> StructuralPartialEq for TabAction<I>
Auto Trait Implementations§
impl<I> Freeze for TabAction<I>
impl<I> RefUnwindSafe for TabAction<I>
impl<I> Send for TabAction<I>
impl<I> Sync for TabAction<I>
impl<I> Unpin for TabAction<I>
impl<I> UnwindSafe for TabAction<I>
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