pub struct CloseRequestAction<'s, L: StoreLayoutEngine>(pub &'s LaidOutScene<L>);Expand description
Built-in default action #0: an unconsumed close-request key down writes one target-only
close to LaidOutScene::close_request_target into the context batch (cleared first) and
is consumed; anything else passes through. Zero allocations once the batch holds one custom
event.
Tuple Fields§
§0: &'s LaidOutScene<L>Trait Implementations§
Source§impl<L: StoreLayoutEngine> DefaultAction<EventBatchBuf> for CloseRequestAction<'_, L>
impl<L: StoreLayoutEngine> DefaultAction<EventBatchBuf> for CloseRequestAction<'_, L>
fn run( &mut self, ev: &ValidatedEvent<'_>, out: &mut EventBatchBuf, ) -> Disposition
Auto Trait Implementations§
impl<'s, L> !RefUnwindSafe for CloseRequestAction<'s, L>
impl<'s, L> !Send for CloseRequestAction<'s, L>
impl<'s, L> !Sync for CloseRequestAction<'s, L>
impl<'s, L> !UnwindSafe for CloseRequestAction<'s, L>
impl<'s, L> Forget for CloseRequestAction<'s, L>
impl<'s, L> Freeze for CloseRequestAction<'s, L>where
&'s LaidOutScene<L>: Freeze,
impl<'s, L> Move for CloseRequestAction<'s, L>
impl<'s, L> Unpin for CloseRequestAction<'s, L>where
&'s LaidOutScene<L>: Unpin,
impl<'s, L> UnsafeUnpin for CloseRequestAction<'s, L>where
&'s LaidOutScene<L>: UnsafeUnpin,
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