pub struct NoExtensions;Expand description
The no-op extension set: every hook keeps this core’s own behavior.
Installed by run_desktop, so the zero-config dev
preview behaves exactly as it did before the seam existed.
Trait Implementations§
Source§impl Clone for NoExtensions
impl Clone for NoExtensions
impl Copy for NoExtensions
Source§impl Debug for NoExtensions
impl Debug for NoExtensions
Source§impl Default for NoExtensions
impl Default for NoExtensions
Source§impl DesktopExtensions for NoExtensions
impl DesktopExtensions for NoExtensions
Source§fn on_event_loop_builder(&mut self, builder: &mut DesktopEventLoopBuilder)
fn on_event_loop_builder(&mut self, builder: &mut DesktopEventLoopBuilder)
Called with the winit event-loop builder, before
build(). Read moreSource§fn on_window_attributes(
&mut self,
attributes: WindowAttributes,
) -> WindowAttributes
fn on_window_attributes( &mut self, attributes: WindowAttributes, ) -> WindowAttributes
Called with the window attributes the core assembled from
DesktopConfig, returning the attributes to
actually create the window with. Read moreSource§fn on_window_created(&mut self, window: &Arc<Window>)
fn on_window_created(&mut self, window: &Arc<Window>)
Called once, immediately after the window is created and its
accessibility adapter constructed, but before the window is shown. Read more
Source§fn pump(&mut self)
fn pump(&mut self)
Called once per frame, at the top of the redraw pass — before the theme
and font polls, and before the rebuild. Read more
Source§fn on_theme_brightness_changed(&mut self, brightness: Brightness)
fn on_theme_brightness_changed(&mut self, brightness: Brightness)
Called whenever the shell’s resolved theme brightness actually changes —
its first resolution in
resumed, a platform appearance change
(WindowEvent::ThemeChanged), and an app-forced override arriving or
clearing through the per-frame set_app_theme/clear_app_theme poll. Read moreSource§fn on_platform_view_commands(
&mut self,
window: &Arc<Window>,
scale: f64,
commands: &[ViewCommand],
)
fn on_platform_view_commands( &mut self, window: &Arc<Window>, scale: f64, commands: &[ViewCommand], )
Called on the UI thread right after a frame is submitted, with the
platform-view differ’s pending command batch in generation order — the
per-OS half of the desktop platform-view host (this crate owns the
OS-neutral half; see
crate::platform_view). Read moreSource§fn on_platform_views_suspended(&mut self)
fn on_platform_views_suspended(&mut self)
Called when the window is destroyed or its surface lost: remove every
hosted native view. Read more
Source§fn on_close_requested(&mut self) -> CloseAction
fn on_close_requested(&mut self) -> CloseAction
Called on
WindowEvent::CloseRequested, deciding whether the loop exits. Read moreimpl Eq for NoExtensions
Source§impl PartialEq for NoExtensions
impl PartialEq for NoExtensions
impl StructuralPartialEq for NoExtensions
Auto Trait Implementations§
impl Freeze for NoExtensions
impl RefUnwindSafe for NoExtensions
impl Send for NoExtensions
impl Sync for NoExtensions
impl Unpin for NoExtensions
impl UnsafeUnpin for NoExtensions
impl UnwindSafe for NoExtensions
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
impl<T> Brush for T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.