pub struct DispatcherOptions {
pub input_starvation_timeout: Duration,
}Expand description
Options for the dispatcher, registered with the service locator.
Fields§
§input_starvation_timeout: DurationGets or sets a timeout after which the dispatcher will start prioritizing input events over rendering. The default value is one second.
If no input events are processed within this time, the dispatcher will start prioritizing input events over rendering to prevent the application from becoming unresponsive. This may need to be lowered on resource-constrained platforms where input events are processed on the same thread as rendering.
Trait Implementations§
Source§impl Clone for DispatcherOptions
impl Clone for DispatcherOptions
impl Copy for DispatcherOptions
Source§impl Debug for DispatcherOptions
impl Debug for DispatcherOptions
Source§impl Default for DispatcherOptions
impl Default for DispatcherOptions
Source§impl PartialEq for DispatcherOptions
impl PartialEq for DispatcherOptions
impl StructuralPartialEq for DispatcherOptions
Auto Trait Implementations§
impl Freeze for DispatcherOptions
impl RefUnwindSafe for DispatcherOptions
impl Send for DispatcherOptions
impl Sync for DispatcherOptions
impl Unpin for DispatcherOptions
impl UnsafeUnpin for DispatcherOptions
impl UnwindSafe for DispatcherOptions
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more