pub struct EguiAsyncPlugin;Expand description
The plugin that drives egui-async’s per-frame updates.
This plugin must be registered with egui for egui-async to work.
It is responsible for updating frame timers and setting the global egui::Context
so that background tasks can request repaints.
The easiest way to register it is to call ctx.plugin_or_default::<EguiAsyncPlugin>();
in your eframe::App::update method or equivalent. egui ensures this is a
cheap, idempotent operation.
Trait Implementations§
Source§impl Default for EguiAsyncPlugin
impl Default for EguiAsyncPlugin
Source§fn default() -> EguiAsyncPlugin
fn default() -> EguiAsyncPlugin
Returns the “default value” for a type. Read more
Source§impl Plugin for EguiAsyncPlugin
impl Plugin for EguiAsyncPlugin
Source§fn debug_name(&self) -> &'static str
fn debug_name(&self) -> &'static str
Plugin name. Read more
Source§fn on_begin_pass(&mut self, ctx: &Context)
fn on_begin_pass(&mut self, ctx: &Context)
Called at the start of each pass. Read more
Source§fn on_end_pass(&mut self, ctx: &Context)
fn on_end_pass(&mut self, ctx: &Context)
Called at the end of each pass. Read more
Source§fn input_hook(&mut self, input: &mut RawInput)
fn input_hook(&mut self, input: &mut RawInput)
Called just before the input is processed. Read more
Source§fn output_hook(&mut self, output: &mut FullOutput)
fn output_hook(&mut self, output: &mut FullOutput)
Called just before the output is passed to the backend. Read more
Auto Trait Implementations§
impl Freeze for EguiAsyncPlugin
impl RefUnwindSafe for EguiAsyncPlugin
impl Send for EguiAsyncPlugin
impl Sync for EguiAsyncPlugin
impl Unpin for EguiAsyncPlugin
impl UnwindSafe for EguiAsyncPlugin
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