pub enum ReleaseScratchPadOption<H: Handle> {
Handle(WindowHandle<H>),
ScratchpadName(ScratchPadName),
None,
}
Expand description
Describes the options for the release scratchpad command
Variants§
Handle(WindowHandle<H>)
Release a window from a scratchpad given a window handle
ScratchpadName(ScratchPadName)
Release a window from a scratchpad given a scratchpad name, the most upper window in the scratchpad queue will be released
None
Release the currently focused window from its scratchpad
Trait Implementations§
Source§impl<H: Clone + Handle> Clone for ReleaseScratchPadOption<H>
impl<H: Clone + Handle> Clone for ReleaseScratchPadOption<H>
Source§fn clone(&self) -> ReleaseScratchPadOption<H>
fn clone(&self) -> ReleaseScratchPadOption<H>
Returns a copy 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 moreSource§impl<'de, H: Handle> Deserialize<'de> for ReleaseScratchPadOption<H>
impl<'de, H: Handle> Deserialize<'de> for ReleaseScratchPadOption<H>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<H: Handle> Serialize for ReleaseScratchPadOption<H>
impl<H: Handle> Serialize for ReleaseScratchPadOption<H>
impl<H: Eq + Handle> Eq for ReleaseScratchPadOption<H>
impl<H: Handle> StructuralPartialEq for ReleaseScratchPadOption<H>
Auto Trait Implementations§
impl<H> Freeze for ReleaseScratchPadOption<H>where
H: Freeze,
impl<H> RefUnwindSafe for ReleaseScratchPadOption<H>where
H: RefUnwindSafe,
impl<H> Send for ReleaseScratchPadOption<H>
impl<H> Sync for ReleaseScratchPadOption<H>where
H: Sync,
impl<H> Unpin for ReleaseScratchPadOption<H>where
H: Unpin,
impl<H> UnwindSafe for ReleaseScratchPadOption<H>where
H: UnwindSafe,
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